/* User Pages Styles - Login, Register, Profile */

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 10px;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
}

/* Register Page */
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.register-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 40px;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 10px;
}

.register-header p {
    color: #64748b;
    font-size: 14px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a365d;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-input:hover {
    border-color: #cbd5e0;
}

.form-input.error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Form Buttons */
.form-submit {
    width: 100%;
    padding: 14px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: #2a4a73;
    transform: translateY(-2px);
}

.form-submit:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

/* Form Links */
.form-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.form-links a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 600;
}

.form-links a:hover {
    text-decoration: underline;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #cbd5e0;
    font-size: 14px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.form-divider span {
    padding: 0 15px;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

/* Profile Page */
.profile-page {
    padding: 40px 20px;
    background: #f9f9f9;
    min-height: 100vh;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a365d;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-email {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-btn {
    padding: 12px 24px;
    border: 2px solid #1a365d;
    border-radius: 8px;
    background: white;
    color: #1a365d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-btn:hover {
    background: #1a365d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 54, 93, 0.2);
}

.profile-btn.primary {
    background: #1a365d;
    color: white;
    border-color: #1a365d;
}

.profile-btn.primary:hover {
    background: #2a4a73;
    border-color: #2a4a73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.profile-tab {
    padding: 15px 25px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.profile-tab:hover {
    color: #1a365d;
}

.profile-tab.active {
    color: #1a365d;
    border-bottom-color: #1a365d;
}

/* Profile Content */
.profile-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Profile Section */
.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

/* Order List */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.order-id {
    font-weight: 600;
    color: #1a365d;
}

.order-date {
    color: #64748b;
    font-size: 14px;
}

.order-status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.order-status.processing {
    background: #dbeafe;
    color: #2563eb;
}

.order-status.shipped {
    background: #d1fae5;
    color: #059669;
}

.order-status.delivered {
    background: #dcfce7;
    color: #16a34a;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.order-products {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.order-product {
    display: flex;
    gap: 10px;
    align-items: center;
}

.order-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.order-product-info {
    flex: 1;
}

.order-product-name {
    font-size: 14px;
    color: #1a365d;
    margin-bottom: 5px;
}

.order-product-price {
    font-size: 14px;
    color: #64748b;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.order-total-label {
    font-weight: 600;
    color: #1a365d;
}

.order-total-amount {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Address List */
.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.address-add-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.address-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-card:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address-card.default {
    border-color: #10b981;
    background: #f0fdf4;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.address-name {
    font-weight: 600;
    color: #1a365d;
    font-size: 16px;
}

.address-badge {
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.address-details {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.address-btn {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.address-btn.delete {
    color: #ef4444;
}

.address-btn.delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container,
    .register-container {
        padding: 30px 20px;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 24px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .profile-tab {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .address-list {
        grid-template-columns: 1fr;
    }
    
    .order-products {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .login-container,
    .register-container {
        padding: 25px 15px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}
