/* Auth Pages Common Styles */
.login-container,
.signup-container {
    display: flex;
    min-height: 100vh;
}

/* Brand Section */
.brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #5c0000 50%, var(--bg-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    opacity: 0.15;
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.brand-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
    opacity: 0.12;
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.brand-logo {
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.brand-logo-link,
.auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo-image {
    width: min(220px, 68vw);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.auth-logo-link {
    margin-bottom: 1rem;
}

.auth-logo-image {
    width: 120px;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brand-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

.feature-icons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.feature-icon {
    text-align: center;
}

.feature-icon i {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.feature-icon:nth-child(1) i { color: var(--cyan); }
.feature-icon:nth-child(2) i { color: var(--orange); }
.feature-icon:nth-child(3) i { color: var(--green); }

/* Form Section */
.form-section {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    overflow-y: auto;
}

.login-container.login-only {
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    padding: 1.5rem;
}

.login-container.login-only .form-section {
    flex: 0 1 560px;
    width: 100%;
    max-width: 560px;
    min-height: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
}

.login-card,
.signup-card {
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.signup-card {
    max-width: 550px;
    margin: 2rem 0;
}

.login-header,
.signup-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.signup-header {
    margin-bottom: 2rem;
}

.login-header h2,
.signup-header h2 {
    color: var(--text-dark);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p,
.signup-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Input Styles */
.input-group-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.signup-card .input-group-icon {
    margin-bottom: 1.25rem;
}

.input-group-icon label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    z-index: 2;
}

.input-group-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.input-group-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.08);
}

.input-group-icon input.is-invalid {
    border-color: #dc3545;
}

.input-group-icon input.is-valid {
    border-color: var(--green);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 0.25rem;
    z-index: 2;
}

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

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
}

.form-check-label {
    color: var(--text-light);
}

.form-options a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-options a:hover {
    color: var(--orange);
}

/* Buttons */
.btn-login,
.btn-signup {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary) 0%, #a00000 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before,
.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before,
.btn-signup:hover::before {
    left: 100%;
}

.btn-login:hover,
.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.3);
}

.btn-signup:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1.75rem 0;
    position: relative;
}

.signup-card .divider {
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: var(--surface);
    padding: 0 1rem;
    position: relative;
    color: var(--text-lighter);
    font-size: 0.875rem;
}

/* Social Login */
.social-login,
.social-signup {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.social-signup {
    margin-bottom: 1.5rem;
}

.social-btn {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn i {
    font-size: 1.25rem;
}

.social-btn:nth-child(1) { color: var(--cyan); }
.social-btn:nth-child(2) { color: var(--orange); }
.social-btn:nth-child(3) { color: var(--green); }

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

.social-btn:nth-child(1):hover {
    border-color: var(--cyan);
    background: rgba(110, 193, 228, 0.05);
}

.social-btn:nth-child(2):hover {
    border-color: var(--orange);
    background: rgba(255, 149, 103, 0.05);
}

.social-btn:nth-child(3):hover {
    border-color: var(--green);
    background: rgba(97, 206, 112, 0.05);
}

/* Links */
.signup-link,
.signin-link {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.signup-link a,
.signin-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover,
.signin-link a:hover {
    color: var(--orange);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { width: 33%; background: #dc3545; }
.strength-medium { width: 66%; background: var(--orange); }
.strength-strong { width: 100%; background: var(--green); }

.password-hint {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 0.25rem;
}

.error-message {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: none;
}

/* Terms */
.terms-check {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.terms-check label {
    color: var(--text-light);
}

.terms-check a {
    color: var(--primary);
    text-decoration: none;
}

.terms-check a:hover {
    color: var(--orange);
}

/* Responsive */
@media (max-width: 992px) {
    .brand-section {
        display: none;
    }
    
    .form-section {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .login-card,
    .signup-card {
        padding: 2rem 1.5rem;
    }
    
    .social-login,
    .social-signup {
        grid-template-columns: 1fr;
    }
}
