/* ===== AUTHENTICATION PAGES ===== */

.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-light);
}

.auth-tab {
    padding: 1.25rem;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.auth-tab.active {
    background-color: var(--white);
    color: var(--primary-color);
}

.auth-form-container {
    display: none;
    padding: 2.5rem;
}

.auth-form-container.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

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

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

.btn-google {
    background-color: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #4285F4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-link a {
    color: var(--secondary-color);
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-size: 0.95rem;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

/* ===== ACCOUNT PAGE ===== */
.account-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.account-sidebar {
    background-color: var(--bg-light);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 120px;
    border-radius: 10px;
}

.account-menu {
    list-style: none;
}

.account-menu li {
    margin-bottom: 0.75rem;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
}

.account-menu a:hover,
.account-menu a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.account-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.account-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.order-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-number {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-status {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cfe2ff;
    color: #084298;
}

.status-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.order-items {
    display: grid;
    gap: 1rem;
}

.order-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.order-item-image {
    width: 80px;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .auth-container {
        margin: 0 1rem;
    }
    
    .auth-form-container {
        padding: 1.5rem;
    }
    
    .order-item {
        grid-template-columns: 1fr;
    }
}

/* End of auth.css */
