/* ===================================
   Authentication Pages Styles
   =================================== */

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.auth-section {
    padding: 15px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.auth-section .container {
    max-width: 100%;
    padding: 0 15px;
}

.auth-section .row {
    margin: 0;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.15);
    border: 2px solid var(--light-blue);
    transition: all 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

.auth-card:hover {
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
    transform: translateY(-5px);
}

.auth-header {
    margin-bottom: 20px;
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
    animation: fadeInDown 0.6s ease-out;
}

.auth-header h2 {
    color: var(--dark-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    margin-top: 20px;
}

.auth-form .mb-3 {
    margin-bottom: 1rem !important;
}

.auth-form .form-text {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.auth-form .row {
    margin-left: -8px;
    margin-right: -8px;
}

.auth-form .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.form-label {
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--primary-blue);
}

.form-control {
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    outline: none;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

.password-toggle:focus {
    outline: none;
}

.form-check-input {
    border: 2px solid var(--light-blue);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-check-label {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.auth-footer-text {
    color: var(--text-light);
    margin: 0;
}

.auth-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--light-blue);
}

.auth-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--light-blue);
    background: var(--white);
    color: var(--text-dark);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.btn-google {
    border-color: #DB4437;
    color: #DB4437;
}

.btn-google:hover {
    background: #DB4437;
    color: var(--white);
    border-color: #DB4437;
}

.btn-facebook {
    border-color: #4267B2;
    color: #4267B2;
}

.btn-facebook:hover {
    background: #4267B2;
    color: var(--white);
    border-color: #4267B2;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 15px 0;
    }
    
    .auth-card {
        padding: 25px 20px;
        max-height: 98vh;
    }
    
    .auth-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .auth-header {
        margin-bottom: 15px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .auth-form {
        margin-top: 15px;
    }
    
    .auth-divider {
        margin: 15px 0;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .btn-social {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 10px 0;
    }
    
    .auth-card {
        padding: 20px 15px;
        max-height: 99vh;
    }
    
    .auth-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .auth-header {
        margin-bottom: 12px;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-form {
        margin-top: 12px;
    }
    
    .form-control {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .auth-divider {
        margin: 12px 0;
    }
}

