/* =============================================================
   JK Leather — Auth & Account Pages
   Covers: login, forgot password, reset password, customer dashboard
============================================================= */

/* ─── Shared Auth Shell ──────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #14100b 0%, #241b12 45%, #1a1208 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 56px;
}

/* Brand mark above every auth card */
.auth-brand {
    margin-bottom: 28px;
    text-align: center;
}

.auth-brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c8a27a;
    display: block;
    line-height: 1;
}

.auth-brand-rule {
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(200,162,122,0.5);
    margin: 10px auto 0;
}

/* Auth card */
.auth-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

/* Gold accent bar at top of card */
.auth-card-top {
    height: 4px;
    background: linear-gradient(90deg, #8a5c3b, #c8a27a, #8a5c3b);
}

.auth-card-body {
    padding: 36px 40px 40px;
}

.auth-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #1a1208;
    margin: 0 0 6px;
    text-align: center;
}

.auth-card-sub {
    font-size: 13px;
    color: #9a8770;
    text-align: center;
    margin: 0 0 28px;
    letter-spacing: 0.01em;
}

/* Field groups */
.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b5d4f;
    margin-bottom: 7px;
}

.auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd6cc;
    border-radius: 3px;
    background: #faf8f5;
    font-size: 14px;
    color: #1a1208;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-input:focus {
    border-color: #8a5c3b;
    background: #fff;
    outline: none;
}

/* Primary button */
.auth-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #8a5c3b;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.auth-btn:hover {
    background: #6f4a2f;
}

/* Google official button */
.auth-btn-google-official {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(60,64,67,0.08);
    box-sizing: border-box;
}

.auth-btn-google-official:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(60,64,67,0.15);
    color: #3c4043;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px;
    color: #c0b4a8;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

/* Footer links inside card */
.auth-footer {
    text-align: center;
    margin-top: 18px;
}

.auth-footer a,
.auth-footer-link {
    font-size: 13px;
    color: #8a5c3b;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-footer a:hover,
.auth-footer-link:hover {
    color: #4a2e1a;
}

.auth-footer-muted {
    font-size: 13px;
    color: #9a8770;
    margin-bottom: 4px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a8770;
    text-decoration: none;
    transition: color 0.15s;
    margin-bottom: 20px;
}

.auth-back:hover { color: #c8a27a; }

.auth-back svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Flash messages */
.auth-flash-success {
    background: #eef7f0;
    border-left: 3px solid #4a7c59;
    color: #2d5c3a;
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-flash-error {
    background: #fdf0f0;
    border-left: 3px solid #b03a2e;
    color: #8b2c22;
    padding: 10px 14px;
    border-radius: 2px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* ─── Customer Dashboard ──────────────────────────────────────── */
.db-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #14100b 0%, #241b12 45%, #1a1208 100%);
    padding: 36px 16px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.db-back {
    width: 100%;
    max-width: 880px;
    margin-bottom: 20px;
}

.db-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(200,162,122,0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.db-back a:hover { color: #c8a27a; }

.db-back svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Main wrapper */
.db-wrap {
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero card */
.db-hero-card {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0,0,0,0.5);
}

.db-hero-bar {
    height: 4px;
    background: linear-gradient(90deg, #8a5c3b, #c8a27a, #8a5c3b);
}

.db-hero-inner {
    background: #1e1610;
    border: 1px solid rgba(200,162,122,0.12);
    border-top: none;
    padding: 32px 40px 36px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.db-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #3d2b1f;
    border: 2px solid rgba(200,162,122,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: #c8a27a;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.db-avatar svg {
    width: 36px;
    height: 36px;
    fill: rgba(200,162,122,0.5);
}

.db-hero-info { flex: 1; min-width: 0; }

.db-hero-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    color: #e8ddd0;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.db-hero-email {
    font-size: 13px;
    color: rgba(200,162,122,0.6);
    margin-bottom: 12px;
    word-break: break-all;
}

.db-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.db-badge {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid rgba(200,162,122,0.35);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c8a27a;
}

.db-since {
    font-size: 12px;
    color: rgba(200,162,122,0.4);
    letter-spacing: 0.04em;
}

/* Content grid */
.db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

/* Stat / action tiles */
.db-tile {
    background: #1e1610;
    border: 1px solid rgba(200,162,122,0.1);
    border-radius: 6px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #c8a27a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    cursor: pointer;
}

.db-tile:hover {
    background: #271e14;
    border-color: rgba(200,162,122,0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: #e8ddd0;
}

.db-tile svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    opacity: 0.75;
}

.db-tile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(229,62,62,0.2);
    border: 1px solid rgba(229,62,62,0.4);
    color: #f87171;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

/* Account info section */
.db-info-card {
    background: #1e1610;
    border: 1px solid rgba(200,162,122,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.db-info-header {
    padding: 16px 24px 14px;
    border-bottom: 1px solid rgba(200,162,122,0.1);
}

.db-info-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(200,162,122,0.5);
}

.db-info-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 24px;
    gap: 16px 32px;
}

.db-info-cell-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(200,162,122,0.4);
    margin-bottom: 5px;
}

.db-info-cell-value {
    font-size: 14px;
    color: #d4c4b0;
    word-break: break-all;
}

.db-role-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid rgba(200,162,122,0.3);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c8a27a;
}

/* Sign out */
.db-signout {
    width: 100%;
    max-width: 880px;
    margin-top: 4px;
}

.db-signout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(200,162,122,0.15);
    color: rgba(200,162,122,0.45);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.db-signout-btn:hover {
    background: rgba(176,58,46,0.12);
    border-color: rgba(176,58,46,0.35);
    color: #f87171;
    text-decoration: none;
}

.db-signout-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.db-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid rgba(176,58,46,0.25);
    color: rgba(200,100,100,0.55);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.db-delete-btn:hover {
    background: rgba(176,58,46,0.15);
    border-color: rgba(176,58,46,0.55);
    color: #f87171;
}

.db-delete-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 640px) {
    .db-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px 32px;
    }
    .db-hero-meta { justify-content: center; }
    .db-grid { grid-template-columns: 1fr 1fr; }
    .db-info-rows { grid-template-columns: 1fr; }
    .auth-card-body { padding: 28px 24px 32px; }
}

/* ─── Contact Us Page (within site layout) ────────────────────── */
.contact-page {
    min-height: calc(100vh - 80px);
    background: linear-gradient(160deg, #14100b 0%, #241b12 45%, #1a1208 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 80px;
}

.contact-wrap {
    width: 100%;
    max-width: 860px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

/* Left info panel */
.contact-info-panel {
    background: #1e1610;
    border: 1px solid rgba(200,162,122,0.12);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c8a27a;
    margin-bottom: 4px;
}

.contact-info-rule {
    width: 28px;
    height: 1px;
    background: rgba(200,162,122,0.4);
    margin-bottom: 16px;
}

.contact-info-desc {
    font-size: 13px;
    color: rgba(200,162,122,0.55);
    line-height: 1.7;
    margin: 0;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(200,162,122,0.2);
    background: rgba(200,162,122,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-info-icon svg {
    width: 15px;
    height: 15px;
    fill: rgba(200,162,122,0.6);
}

.contact-info-item-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(200,162,122,0.4);
    margin-bottom: 3px;
}

.contact-info-item-value {
    font-size: 13px;
    color: #d4c4b0;
    line-height: 1.5;
}

/* Right form panel */
.contact-form-panel {
    background: #fff;
    padding: 48px 44px;
    position: relative;
}

.contact-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8a5c3b, #c8a27a, #8a5c3b);
}

.contact-form-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #1a1208;
    margin: 0 0 4px;
}

.contact-form-sub {
    font-size: 13px;
    color: #9a8770;
    margin: 0 0 28px;
}

.contact-field {
    margin-bottom: 18px;
}

.contact-field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b5d4f;
    margin-bottom: 7px;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd6cc;
    border-radius: 3px;
    background: #faf8f5;
    font-size: 14px;
    color: #1a1208;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #8a5c3b;
    background: #fff;
    outline: none;
}

.contact-textarea {
    resize: none;
    height: 120px;
}

.contact-char-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.char-counter {
    font-size: 11px;
    color: #9a8770;
    letter-spacing: 0.04em;
}

.char-counter.char-limit-hit {
    color: #b03a2e;
}

.contact-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #8a5c3b;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.contact-btn:hover { background: #6f4a2f; }

@media (max-width: 680px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .contact-info-panel {
        padding: 32px 28px;
    }
    .contact-form-panel {
        padding: 36px 28px 40px;
    }
}
