/* ============================================
   AUTH PAGES CSS (Login & Register)
   ============================================ */

.auth-page-wrapper {
    background-color: var(--bg-gray);
    padding: 60px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 400px); /* rough height minus header/footer */
}

.auth-container {
    background: white;
    width: 100%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    min-height: 600px;
}

/* For Register we might want it slightly wider */
.register-container {
    max-width: 1100px;
}

/* Image Side */
.auth-image-side {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.auth-image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(45, 38, 33, 0.95) 0%, rgba(45, 38, 33, 0.4) 100%);
    padding: 60px;
    display: flex;
    align-items: flex-end;
}

.auth-quote {
    color: white;
    position: relative;
    z-index: 2;
}

.auth-quote h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-quote p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    max-width: 90%;
}

.auth-benefits {
    margin-top: 24px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}

.auth-benefits i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

/* Form Side */
.auth-form-side {
    flex: 1.2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-container .auth-form-side {
    flex: 1.5; /* Give register form more space */
}

.auth-form-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

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

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mt-4 { margin-top: 24px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row .form-label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-body);
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.input-with-icon .form-control {
    padding-left: 44px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 77, 22, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

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

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

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    justify-content: center;
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Form Grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }
    
    .register-container {
        flex-direction: column-reverse; /* Form on top for mobile register */
    }
    
    .auth-image-side {
        min-height: 250px;
        flex: none;
    }
    
    .auth-image-overlay {
        padding: 40px 24px;
    }
    
    .auth-form-side {
        padding: 40px 24px;
    }
}
