/*
 * Account Area CSS - Redesigned for visual consistency with style.css
 * ====================================================================
 * This file has been refactored to use the main site's design language,
 * ensuring a seamless user experience between the landing page and the account area.
 * Changes include:
 * - Full adoption of the CSS variables from style.css.
 * - Unified typography (Heebo, Playfair Display).
 * - Redesigned buttons, forms, and cards to match the luxury theme.
 * - Kept the layout functional while enhancing the aesthetics.
*/

/* This is a conceptual import. In reality, you just use the same variables. */

:root {
    /* Copied from style.css for clarity, assuming it's globally available */
    --primary-gold: #C9A961;
    --secondary-gold: #B8941F;
    --dark-gold: #996F1A;
    --accent-gold: #E6CC7A;
    --text-primary: #2C2C2C;
    --text-secondary: #5A5A5A;
    --text-light: #8B8B8B;
    --background-cream: #FBF8F2;
    --white-soft: #FEFEFE;
    --shadow-light: rgba(201, 169, 97, 0.15);
    --shadow-medium: rgba(201, 169, 97, 0.25);
    --shadow-dark: rgba(60, 60, 60, 0.15);
    --shadow-warm: rgba(184, 148, 31, 0.2);
    --gradient-gold: linear-gradient(135deg, #C9A961 0%, #B8941F 50%, #996F1A 100%);
    --gradient-cream: linear-gradient(135deg, #FBF8F2 0%, #F7F1E8 100%);
    --gradient-elegant: linear-gradient(135deg, #FEFEFE 0%, #F7F1E8 100%);
}

body {
    font-family: 'Heebo', 'Assistant', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 20px;
    background: var(--gradient-cream);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background: var(--white-soft);
    border-radius: 20px;
    box-shadow: 0 25px 70px var(--shadow-light), 0 10px 30px var(--shadow-dark);
    overflow: hidden;
    border: 1px solid var(--accent-gold);
}

.header {
    background: var(--gradient-gold);
    color: var(--white-soft);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(0) translateY(0);
    }

    to {
        transform: translateX(100px) translateY(100px);
    }
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 15px;
    position: relative;
}

/* --- UNIFIED BUTTON STYLES --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.btn-primary {
    background: var(--gradient-gold);
    color: var(--white-soft);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.btn.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-warm);
}

.btn.btn-secondary {
    background: transparent;
    color: var(--white-soft);
    border-color: var(--white-soft);
}

.btn.btn-secondary:hover {
    background: var(--white-soft);
    color: var(--primary-gold);
    transform: translateY(-2px);
}

/* --- UNIFIED FORM STYLES --- */
.login-section {
    padding: 50px 40px;
    background: var(--gradient-elegant);
}

.welcome-message {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-message h2 {
    color: var(--primary-gold);
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.welcome-message p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.login-form {
    max-width: 450px;
    margin: 0 auto;
    background: var(--white-soft);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 70px var(--shadow-light), 0 10px 30px var(--shadow-dark);
    border: 1px solid var(--accent-gold);
}

.login-form h3 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark-gold);
    margin-bottom: 25px;
}

.form-input {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    text-align: right;
    background: var(--white-soft);
    color: var(--text-primary);
    box-shadow: inset 0 2px 10px rgba(44, 44, 44, 0.1), 0 5px 20px rgba(44, 44, 44, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    margin: 15px 0;
}

.form-input:focus {
    outline: none;
    box-shadow: inset 0 2px 10px rgba(44, 44, 44, 0.1), 0 0 0 4px rgba(201, 169, 97, 0.3);
    border-color: var(--accent-gold);
}

.register-link,
.admin-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.register-link a {
    color: var(--primary-gold);
    font-weight: 600;
    text-decoration: none;
}

.admin-link a {
    color: var(--text-light);
    text-decoration: none;
}

/* --- DASHBOARD & CARDS --- */
.dashboard {
    padding: 50px 40px;
    background: var(--gradient-elegant);
}

.welcome-back h2 {
    text-align: center;
    color: var(--primary-gold);
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 50px;
}

.account-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.info-card,
.settings-card,
.contact-info {
    background: var(--white-soft);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 25px 70px var(--shadow-light), 0 10px 30px var(--shadow-dark);
    border: 1px solid var(--accent-gold);
    transition: all 0.4s ease;
}

.info-card:hover,
.settings-card:hover,
.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 90px var(--shadow-medium), 0 15px 40px var(--shadow-dark);
}

.info-card h3,
.settings-card h3,
.contact-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--accent-gold);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.info-item:last-child {
    border: none;
}

.label {
    font-weight: 600;
    color: var(--text-secondary);
}

.value {
    font-weight: 500;
}

.status-confirmed {
    color: #28a745;
    font-weight: bold;
}

.status-pending {
    color: #ffc107;
    font-weight: bold;
}

.settings-form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    background: var(--white-soft);
    transition: all 0.3s ease;
}

.settings-form select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

/* --- MESSAGES & NOTIFICATIONS --- */
.status-message {
    margin-bottom: 50px;
}

.success-message,
.pending-message {
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    border-style: solid;
    border-width: 1px;
}

.success-message {
    background: #e8f5e8;
    color: #388e3c;
    border-color: #388e3c;
}

.pending-message {
    background: #fff8e1;
    color: #ffa000;
    border-color: #ffa000;
}

.success-message h3,
.pending-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.success,
.error {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    border-style: solid;
    border-width: 1px;
}

.success {
    background: #e8f5e8;
    color: #388e3c;
    border-color: #388e3c;
}

.error {
    background: #fbe9e7;
    color: #d9534f;
    border-color: #d9534f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .account-info {
        grid-template-columns: 1fr;
    }

    .login-section,
    .dashboard {
        padding: 30px 20px;
    }
}