﻿body, .login-bg {
    min-height: 100vh;
    background: linear-gradient(120deg, #667eea 0%, #764ba2 60%, #45aaf2 100%);
}

.login-card {
    background: rgba(255,255,255,0.85);
    box-shadow: 0 12px 36px #a1c4fd33;
    border-radius: 30px;
    padding: 36px 30px 24px 30px;
    position: relative;
    backdrop-filter: blur(12px);
    border: 1.5px solid #f3f8ff;
    animation: login-pop .8s cubic-bezier(.25,1.7,.9,.8);
    max-width: 450px;
    width: 100%;
}

@keyframes login-pop {
    0% {
        transform: scale(.85) translateY(60px);
        opacity: 0.2;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.login-card .form-control:focus {
    box-shadow: 0 0 0 2px #45aaf2aa;
    border-color: #176ae6;
    background: #fff;
}

.glass-input {
    background: rgba(240,248,255,0.7) !important;
    border-radius: 14px !important;
    border: 1.3px solid #e3ecfa !important;
    padding: 10px 14px;
}

.login-card img {
    box-shadow: 0 6px 18px #a1c4fd11;
    border-radius: 18px;
}

.captcha-box {
    background: transparent !important;
    color: #176ae6;
    font-weight: bold;
    font-size: 1.09rem;
    border: 1px solid #e3ecfa;
    border-radius: 0 12px 12px 0;
    min-width: 100px;
    text-align: center;
    box-shadow: none;
}

.login-card .btn-gradient-navbar {
    font-weight: 700;
    font-size: 1.13rem;
    letter-spacing: .5px;
    box-shadow: 0 3px 16px #45aaf233;
    border-radius: 20px;
    transition: 0.19s cubic-bezier(.44,1.9,.7,.6);
}

    .login-card .btn-gradient-navbar:hover {
        transform: scale(1.03) translateY(-2px);
        box-shadow: 0 10px 32px #176ae6aa;
    }

.login-card .text-primary {
    background: linear-gradient(90deg, #176ae6 15%, #45aaf2 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card label {
    font-size: 0.98rem;
}

/* Animation for input focus */
.login-card .form-control:focus {
    animation: pulse-focus 0.3s;
}

@keyframes pulse-focus {
    0% {
        box-shadow: 0 0 0 0 #45aaf2aa;
    }

    100% {
        box-shadow: 0 0 0 3px #45aaf299;
    }
}

.glass-input::placeholder {
    color: #466b93 !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    letter-spacing: .1px;
}

/* چیدمان تک سطری */
.form-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.form-label-inline {
    max-width: 110px;
    margin-bottom: 0 !important;
    font-size: 1rem;
    text-align: right;
    color: #444e6e;
    font-weight: 600;
    padding-top: 10px; /* تراز با input */
    line-height: 1.2;
}

.input-container {
    flex: 1;
    min-width: 0;
}

    .input-container .glass-input {
        width: 100%;
    }

    .input-container .text-danger {
        display: block;
        margin-top: 5px;
        font-size: 0.85rem;
    }

    /* برای captcha */
    .input-container.d-flex {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

        .input-container.d-flex .glass-input {
            flex: 1;
        }

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 20px 15px;
        border-radius: 18px;
        margin: 15px;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .form-label-inline {
        min-width: auto;
        max-width: none;
        text-align: right;
        padding-top: 0;
        margin-bottom: 5px !important;
    }

    .input-container.d-flex {
        flex-direction: row;
    }
}

@media (max-width: 400px) {
    .captcha-box {
        min-width: 80px;
        font-size: 0.9rem;
    }
}
