/* Auth Pages Styles */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
}

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

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(27, 77, 31, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

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

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

.auth-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-message.success {
    background: #E8F5E9;
    color: #2D7A34;
    border: 1px solid #A5D6A7;
}

.auth-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.auth-form {
    margin-bottom: 24px;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 52, 0.1);
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E0E0E0;
}

.auth-divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #F5F5F5;
    border-color: #BDBDBD;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

/* Account Page Styles */

.account-section {
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(27, 77, 31, 0.08);
}

.account-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.account-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.account-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(27, 77, 31, 0.08);
}

.orders-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E0E0E0;
    border-top-color: var(--primary-green);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
}

.no-orders svg {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.no-orders h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-orders p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 16px rgba(27, 77, 31, 0.1);
}

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

.order-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending {
    background: #FFF3E0;
    color: #E65100;
}

.order-status.completed {
    background: #E8F5E9;
    color: #2D7A34;
}

.order-status.processing {
    background: #E3F2FD;
    color: #1565C0;
}

.order-status.cancelled {
    background: #FFEBEE;
    color: #C62828;
}

.order-details {
    margin-bottom: 16px;
}

.order-items {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.order-address {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
}

.order-total-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 8px;
}

/* Responsive */

@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }

    .account-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .account-user-info {
        flex-direction: column;
        text-align: center;
    }

    .account-content {
        padding: 24px;
    }

    .order-header {
        flex-direction: column;
        gap: 12px;
    }

    .order-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Order Status Badges */
.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-processing {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.status-shipped {
    background-color: #E0E7FF;
    color: #3730A3;
}

.status-delivered {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-cancelled {
    background-color: #FEE2E2;
    color: #991B1B;
}
