/* Authentication Pages Styles */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--barn-cream), #FFF8DC);
}

.auth-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

.auth-card {
    flex: 1;
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    overflow-y: auto;
}

.auth-side {
    flex: 1;
    background: linear-gradient(135deg, var(--barn-red), #A0303E);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.auth-logo .logo-icon {
    font-size: 2rem;
    color: var(--barn-red);
    margin-right: 10px;
}

.auth-logo .logo-main {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.auth-logo .logo-sub {
    font-size: 0.8rem;
    color: var(--barn-brown);
    font-style: italic;
}

.auth-form h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--barn-brown);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-form-fields {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--barn-red);
    width: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.form-group input:focus {
    outline: none;
    border-color: var(--barn-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--barn-red);
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--barn-red);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--barn-red);
    border-color: var(--barn-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--barn-red);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--barn-brown);
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #666;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E0E0E0;
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 12px 20px;
    border: 2px solid #E0E0E0;
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-social:hover {
    border-color: #C0C0C0;
    background: #F8F8F8;
}

.btn-google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.auth-switch {
    text-align: center;
    color: #666;
}

.auth-switch a {
    color: var(--barn-red);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Side Panel Styles */
.barn-scene-large {
    position: relative;
    margin-bottom: 2rem;
    height: 300px;
}

.barn-illustration-large {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 0 auto;
}

.barn-roof-large {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 60px solid rgba(255,255,255,0.9);
}

.barn-body-large {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 90px;
    background: rgba(255,255,255,0.8);
    border-radius: 0 0 8px 8px;
}

.barn-door-large {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: rgba(255,255,255,0.6);
    border-radius: 20px 20px 0 0;
    border: 2px solid rgba(255,255,255,0.8);
}

.countryside {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
}

.hills {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(255,255,255,0.2) 20%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.2) 80%, 
        transparent 100%);
    border-radius: 50px 50px 0 0;
}

.trees {
    position: absolute;
    bottom: 60px;
    left: 20%;
    width: 30px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.trees::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: rgba(255,255,255,0.4);
}

.sun {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.auth-side-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.auth-side-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.benefits-list i {
    color: var(--barn-gold);
    font-size: 1.2rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.alert-success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #86EFAC;
}

.alert-warning {
    background: #FFFBEB;
    color: #D97706;
    border: 1px solid #FCD34D;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-side {
        order: -1;
        min-height: 300px;
    }
    
    .auth-card {
        max-width: none;
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .barn-scene-large {
        height: 200px;
    }
    
    .barn-illustration-large {
        width: 150px;
        height: 100px;
    }
    
    .barn-roof-large {
        border-left-width: 75px;
        border-right-width: 75px;
        border-bottom-width: 45px;
    }
    
    .barn-body-large {
        width: 120px;
        height: 70px;
    }
    
    .barn-door-large {
        width: 30px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1rem;
    }
    
    .auth-logo .logo-main {
        font-size: 1.3rem;
    }
    
    .auth-form h2 {
        font-size: 1.5rem;
    }
    
    .social-login {
        gap: 0.75rem;
    }
    
    .btn-social {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
