/* login.css */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary); /* Light beige background */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 620px;
    background-color: var(--bg-panel);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow); /* Warm shadow */
}

/* Form Section */
.auth-card {
    flex: 1;
    padding: 40px;
    padding-bottom: 0px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    text-decoration: none;
}

.logo img {
    height: 35px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary); /* Brown text */
}

.auth-header h1 {
    font-size: 1.8rem;
    color: var(--text-primary); /* Darker text */
    margin: 0 0 10px 0;
}

.auth-header p {
    color: var(--text-secondary); /* Medium text */
    margin: 0;
    font-size: 0.95rem;
}

.auth-error, .auth-success {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-error {
    background-color: var(--bg-panel); /* Muted red background */
    color: var(--error); /* Muted red text */
    border: 1px solid var(--error); /* Muted red border */
}

.auth-success {
    background-color: var(--bg-panel); /* Muted green background */
    color: var(--success); /* Muted green text */
    border: 1px solid var(--success); /* Muted green border */
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary); /* Medium text */
    margin-bottom: 6px;
}

.form-group input {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-primary); /* Warm border */
    background-color: var(--input-bg);
    color: var(--input-text);
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--accent); /* Brown */
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 146, 62, 0.1); /* Warm shadow */
}

.password-requirements {
    font-size: 0.8rem;
    color: var(--text-secondary); /* Warm gray */
    margin-top: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary); /* Medium text */
}

.forgot-password {
    color: var(--accent); /* Brown */
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary); /* Darker brown */
    text-decoration: underline;
}

.form-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary); /* Medium text */
}

.form-terms input {
    margin-top: 3px;
}

.form-terms a {
    color: var(--accent); /* Brown */
    text-decoration: none;
    transition: color 0.3s;
}

.form-terms a:hover {
    color: var(--secondary); /* Darker brown */
    text-decoration: underline;
}

.auth-button {
    padding: 14px;
    border-radius: 25px;
    border: none;
    background-color: var(--btn-bg); /* Brown */
    color: var(--btn-text);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-button:hover {
    background-color: var(--primary-light); /* Darker brown */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow); /* Warm shadow */
}

.auth-separator {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-secondary); /* Warm gray */
    font-size: 0.9rem;
}

.auth-separator::before, .auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-primary); /* Warm border */
}

.auth-separator span {
    padding: 0 10px;
}

.switch-auth {
    text-align: center;
    color: var(--text-secondary); /* Medium text */
    text-decoration: none;
    font-size: 0.95rem;
}

.switch-auth span {
    color: var(--accent); /* Brown */
    font-weight: 600;
}

.switch-auth:hover span {
    text-decoration: underline;
}

/* Decoration Section */
.auth-decoration {
    flex: 1;
    background-color: var(--secondary); /* Brown */
    background-image: linear-gradient(135deg, var(--secondary), var(--primary-light)); /* Brown gradient */
    color: var(--btn-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../images/auth-pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.decoration-content {
    position: relative;
    z-index: 1;
    max-width: 300px;
}

.decoration-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.decoration-content p {
    opacity: 0.9;
    margin-bottom: 40px;
}

.decoration-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.decoration-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 20px;
    height: 20px;
}

.feature-text {
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        max-width: 500px;
        margin: 20px;
    }
    
    .auth-decoration {
        display: none;
    }
}

@media (max-width: 500px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-button {
        padding: 12px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}