/* ============================================
   NYASACV ULTRA-MODERN AUTH SYSTEM
   Split Screen Design with Gradient
   ============================================ */

.page-single {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.page-single::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.page-single::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

/* Auth Container */
.col-login {
    max-width: 480px !important;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: slideUp 0.8s ease-out;
}

/* Ensure auth page stays centered on desktop */
@media (min-width: 768px) {
    .page-single .container {
        max-width: 1200px;
    }

    .page-single .col-login {
        max-width: 480px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-single .card {
        max-width: 100%;
        width: 100%;
    }
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.6s ease-out;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.auth-logo img:hover {
    transform: scale(1.05);
}

/* Modern Auth Card */
.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.card-body {
    padding: 3rem !important;
}

.card-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.01em;
}

/* Modern Input Fields */
.form-control {
    height: 52px;
    padding: 0 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-control.is-invalid {
    border-color: #f56565;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.1);
}

/* Invalid Feedback */
.invalid-feedback {
    color: #f56565;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

/* Custom Checkbox */
.custom-control {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.custom-control-input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e0;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 0.75rem;
}

.custom-control-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.custom-control-label {
    font-size: 0.9375rem;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* Forgot Password Link */
.float-right {
    float: right;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.float-right:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Form Footer / Buttons */
.form-footer {
    margin-top: 2rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    height: 54px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Facebook Login Button */
.btn-facebook {
    height: 54px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-facebook:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-facebook i {
    font-size: 1.25rem;
}

/* Bottom Text */
.text-center.text-muted {
    text-align: center;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.text-center.text-muted a {
    color: white;
    font-weight: 700;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.text-center.text-muted a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Language Dropdown */
.dropdown {
    margin-top: 1.5rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 576px) {
    .card-body {
        padding: 2rem !important;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .col-login {
        margin: 1rem;
    }

    .btn-primary,
    .btn-facebook {
        height: 48px;
        font-size: 0.9375rem;
    }

    .form-control {
        height: 48px;
    }
}

/* Success/Error Alerts */
.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.1));
    color: #2f855a;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1), rgba(229, 62, 62, 0.1));
    color: #c53030;
}

.alert-info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(49, 130, 206, 0.1));
    color: #2c5282;
}

/* reCAPTCHA Container */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.text-red {
    color: #f56565;
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
