/* Modern Dark Glassmorphism Styling for Login Pages */
body {
    background-color: #090a0f !important;
    color: #f8fafc !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.page-content-wrapper {
    background-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh !important;
    padding: 2rem 1rem;
}

/* Page Card & Glass Container */
.for-login .page-card,
.for-forgot .page-card,
.for-login-with-email-link .page-card,
.for-signup .page-card,
.for-email-login .page-card,
.page-card {
    background: rgba(18, 20, 32, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    padding: 40px 30px !important;
    max-width: 420px !important;
}

/* Header & Logo */
.page-card-head {
    text-align: center;
    margin-bottom: 24px;
}

.page-card-head .app-logo {
    max-height: 72px !important;
    width: auto !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 16px !important;
}

.page-card-head h4 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #f8fafc !important;
    letter-spacing: -0.02em !important;
}

/* Form Inputs */
.page-card-body input[type="text"],
.page-card-body input[type="email"],
.page-card-body input[type="password"],
.form-control {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    padding: 12px 14px 12px 38px !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
}

.page-card-body input:focus,
.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    color: #ffffff !important;
}

/* Icons */
.page-card-body .field-icon {
    fill: #94a3b8 !important;
}

.page-card-body .toggle-password {
    color: #94a3b8 !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.forgot-password-message a {
    color: #60a5fa !important;
    font-weight: 500 !important;
}

/* Primary Login Buttons */
.btn-primary, .btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover, .btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
}

/* Secondary & LDAP buttons */
.btn-default {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
}

.btn-default:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Splash / loading animation */
.centered.splash,
.splash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.centered.splash img,
.splash img {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
    object-fit: cover;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: splash-pulse 1.8s ease-in-out infinite;
    -webkit-animation: splash-pulse 1.8s ease-in-out infinite;
}

@keyframes splash-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(0.92);
        opacity: 0.75;
    }
}

@-webkit-keyframes splash-pulse {
    0% {
        -webkit-transform: scale(0.92);
        opacity: 0.75;
    }
    50% {
        -webkit-transform: scale(1.04);
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(0.92);
        opacity: 0.75;
    }
}

