.login-page,
.register-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
}

.auth-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(101, 67, 33, 0.15);
    max-width: 480px;
    width: 100%;
    padding: 40px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header i {
    font-size: 70px;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 28px;
    color: var(--dark-brown);
    margin-bottom: 8px;
}

.auth-header p {
    color: #888;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: 14px;
}

.auth-form label i {
    margin-left: 5px;
    color: var(--primary-brown);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0d5c7;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-left: 8px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--dark-brown);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0d5c7;
}

.auth-footer p {
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-brown);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--dark-brown);
}

.profile-page,
.my-orders-page,
.wishlist-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    background: #f9f6f2;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    color: var(--primary-brown);
    padding: 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(101, 67, 33, 0.2);
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 90px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.profile-info p {
    margin: 5px 0;
    opacity: 0.95;
    font-size: 15px;
}

.profile-info i {
    margin-left: 8px;
}

.member-since {
    margin-top: 10px;
    font-size: 13px !important;
    opacity: 0.8 !important;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(101, 67, 33, 0.15);
}

.stat-card i {
    font-size: 40px;
    color: var(--primary-brown);
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 24px;
    color: var(--dark-brown);
    margin-bottom: 5px;
}

.stat-card p {
    color: #888;
    font-size: 14px;
}

.profile-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-menu {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--dark-brown);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.menu-item i {
    margin-left: 12px;
    font-size: 18px;
    width: 25px;
}

.menu-item:hover {
    background: #f9f6f2;
    border-right-color: var(--primary-brown);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(139, 90, 43, 0.1) 0%, transparent 100%);
    border-right-color: var(--primary-brown);
    color: var(--primary-brown);
    font-weight: 600;
}

.menu-item.logout {
    color: #d32f2f;
    border-top: 1px solid #eee;
}

.menu-item.logout:hover {
    background: #ffebee;
    border-right-color: #d32f2f;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
    padding: 20px 25px;
    border-bottom: 2px solid #d4c4a8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 20px;
    color: var(--dark-brown);
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: var(--primary-brown);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--dark-brown);
}

.card-body {
    padding: 25px;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: 14px;
}

.profile-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0d5c7;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.profile-form input:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f9f6f2;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #f0e8dc;
    transform: translateX(-3px);
}

.order-number {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 16px;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-amount {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 80px;
    color: #d4c4a8;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 22px;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .sidebar-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-menu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}