.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.6px),
        radial-gradient(circle at 70% 42%, rgba(91, 104, 124, 0.10) 0 1px, transparent 1.7px),
        radial-gradient(circle at 38% 76%, rgba(51, 96, 207, 0.07) 0 1px, transparent 1.8px),
        linear-gradient(135deg, rgba(51, 96, 207, 0.08), transparent 32%),
        linear-gradient(180deg, #f5f6f8 0%, #eef1f5 48%, #f9fafb 100%);
    background-size: 18px 18px, 22px 22px, 26px 26px, auto, auto;
}

.login-bg {
    min-height: 100vh;
    padding: 32px 18px;
}

.login-card {
    width: min(430px, 94vw);
    min-height: auto;
    padding: 34px 36px 32px;
    border: 1px solid rgba(51, 96, 207, 0.18);
    border-top: 5px solid #3360cf;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 52px rgba(35, 62, 123, 0.16);
}

.login-card .card-body {
    padding: 0;
}

.login-card .logo-img {
    width: min(360px, 88%);
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto 24px;
}

.login-card form::before {
    content: "Sign in to continue";
    display: block;
    margin: 0 0 22px;
    color: #667085;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: center;
}

.login-card .mb-3 {
    margin-bottom: 16px !important;
}

.login-card label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 0.86rem;
    font-weight: 700;
}

.login-card .form-control {
    min-height: 46px;
    border: 1px solid #d8e1f4;
    border-radius: 8px;
    color: #1d2939;
    font-size: 0.98rem;
    background: #fbfdff;
}

.login-card .form-control:focus {
    border-color: #3360cf;
    box-shadow: 0 0 0 0.2rem rgba(51, 96, 207, 0.14);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #667085;
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
    color: #3360cf;
    background: #eef4ff;
    outline: none;
}

.password-eye {
    position: relative;
    width: 20px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50% / 65%;
}

.password-eye::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.password-eye::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 8px;
    display: none;
    width: 2px;
    height: 22px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.password-toggle.is-visible .password-eye::after {
    display: block;
}

.login-card .btn {
    width: 100% !important;
    min-width: 0;
    min-height: 46px;
    margin-top: 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    background: #3360cf;
    box-shadow: 0 10px 22px rgba(51, 96, 207, 0.24);
}

.login-card .btn:hover,
.login-card .btn:focus {
    background: #284ead;
}

.login-card .alert {
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: left;
}

@media (max-width: 520px) {
    .login-card {
        padding: 28px 22px 26px;
    }

    .login-card .logo-img {
        width: min(220px, 86%);
    }
}
