.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    overflow: auto;
}

/* Login modern layout (scoped to index.php only) */
.auth.auth-login-modern {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: block;
    align-items: initial;
    justify-content: initial;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #f8fafc;
    background:
        radial-gradient(circle at 20% 18%, rgba(148, 163, 184, 0.18), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(52, 184, 216, 0.13), transparent 32%),
        radial-gradient(circle at 70% 90%, rgba(71, 85, 105, 0.20), transparent 36%),
        linear-gradient(145deg, #090b10 0%, #11151d 50%, #07090d 100%);
}

.auth.auth-login-modern::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
}

.auth-login-modern .auth-page-modern {
    min-height: calc(100vh - 48px);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-modern .auth-login-card {
    width: 100%;
    max-width: 430px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(17, 21, 28, 0.90);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.50);
    animation: authCardIn 0.45s ease both;
}

.auth-login-modern .auth-login-card-body {
    padding: 34px 38px 36px;
    background: rgba(21, 26, 34, 0.96);
}

.auth-login-modern .auth-login-logo-box {
    width: 220px;
    height: auto;
    margin: 0 auto 12px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
}

.auth-login-modern .auth-login-logo-box img {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    transform: none;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.auth-login-modern .auth-login-title {
    margin: 0;
    text-align: center;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #f8fafc;
}

.auth-login-modern .auth-login-subtitle {
    margin: 9px 0 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
}

.auth-login-modern .auth-login-label {
    margin-bottom: 9px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
}

.auth-login-modern .auth-login-input-group {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.26);
    overflow: hidden;
    transition: all 0.18s ease;
}

.auth-login-modern .auth-login-input-group:focus-within {
    border-color: rgba(52, 184, 216, 0.65);
    background: rgba(0, 0, 0, 0.36);
    box-shadow: 0 0 0 4px rgba(52, 184, 216, 0.10);
}

.auth-login-modern .auth-login-input-group .input-group-text {
    border: 0;
    background: transparent;
    color: #34b8d8;
    padding-left: 17px;
    padding-right: 4px;
}

.auth-login-modern .auth-login-input-group .form-control {
    border: 0;
    background: transparent;
    color: #f8fafc;
    padding-top: 15px;
    padding-bottom: 15px;
    box-shadow: none;
}

.auth-login-modern .auth-login-input-group .form-control::placeholder {
    color: #64748b;
}

.auth-login-modern .auth-login-input-group .form-control:focus {
    background: transparent;
    color: #f8fafc;
    box-shadow: none;
}

.auth-login-modern .btn-auth-login {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    font-weight: 900;
    color: #03141f;
    background: linear-gradient(135deg, #34b8d8 0%, #1f6f8f 100%);
    box-shadow: 0 18px 38px rgba(52, 184, 216, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-login-modern .btn-auth-login:hover,
.auth-login-modern .btn-auth-login:focus {
    color: #03141f;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 22px 45px rgba(52, 184, 216, 0.28);
}

.auth-login-modern .auth-login-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
    color: #64748b;
    font-size: 13px;
    background: rgba(9, 11, 16, 0.72);
}

.auth-login-modern .alert-auth-login {
    margin: 18px 0 22px;
    padding: 10px 14px;
    border-radius: 12px;
    border-color: rgba(220, 53, 69, 0.22);
    background: rgba(220, 53, 69, 0.09);
    color: #f4a8b1;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .auth.auth-login-modern {
        padding: 16px;
    }

    .auth-login-modern .auth-page-modern {
        min-height: calc(100vh - 32px);
    }

    .auth-login-modern .auth-login-card {
        border-radius: 28px;
    }

    .auth-login-modern .auth-login-card-body {
        padding: 26px 23px 28px;
    }

    .auth-login-modern .auth-login-logo-box {
        width: 188px;
        height: auto;
        margin: 0 auto 10px;
    }

    .auth-login-modern .auth-login-logo-box img {
        width: 188px;
        transform: none;
    }
}
