/* ==========================================================================
   Splendid Stitch Auth Pages - Luxury Gold & Warm Ivory Theme
   100% Visual Fidelity to Reference Mockups
   ========================================================================== */

:root {
    --gold-main: #c7922a;
    --gold-dark: #b87d19;
    --gold-light: #dfa93f;
    --gold-line: #d8b46b;
    --gold-gradient: linear-gradient(180deg, #d3992b 0%, #ba7f1b 100%);
    --gold-gradient-hover: linear-gradient(180deg, #dda939 0%, #c58922 100%);
    --gold-glow: rgba(199, 146, 42, 0.28);
    --gold-shadow: rgba(186, 127, 27, 0.35);
    --gold-transparent-bg: rgba(199, 146, 42, 0.12);
    --gold-transparent-border: rgba(199, 146, 42, 0.42);
    --page-bg: #e8deca;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(199, 146, 42, 0.42);
    --input-border: rgba(199, 146, 42, 0.34);
    --text-heading: #1e242e;
    --text-muted: #6b7280;
    --text-body: #2d3748;
    --divider-line: rgba(199, 146, 42, 0.35);
    --radius-card: 18px;
    --radius-input: 8px;
    --radius-btn: 8px;
}

body.auth-gold-body {
    background-color: var(--page-bg);
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(201, 146, 42, 0.42) 0%, rgba(184, 125, 25, 0.26) 42%, transparent 75%),
        radial-gradient(circle at 10% 85%, rgba(184, 125, 25, 0.32) 0%, transparent 50%),
        radial-gradient(circle at 90% 85%, rgba(201, 146, 42, 0.32) 0%, transparent 50%),
        linear-gradient(180deg, rgba(243, 234, 216, 0.94) 0%, rgba(228, 215, 188, 0.98) 100%);
    background-attachment: fixed;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    min-height: 100vh;
    margin: 0;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.auth-gold-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-gold-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.8px solid var(--card-border);
    border-radius: var(--radius-card);
    box-shadow: 
        0 22px 50px rgba(184, 125, 25, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 440px;
    padding: 38px 34px 32px 34px;
    box-sizing: border-box;
    position: relative;
}

.auth-gold-card.card-register {
    max-width: 500px;
    padding: 34px 30px 28px 30px;
}

/* Top Avatar Icon Circle */
.auth-avatar-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1.8px solid var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    background: var(--gold-transparent-bg);
    color: var(--gold-main);
    box-shadow: 0 4px 14px rgba(199, 146, 42, 0.2);
}

.auth-avatar-circle svg {
    width: 30px;
    height: 30px;
    stroke: var(--gold-main);
    stroke-width: 1.8;
    fill: none;
}

/* Titles */
.auth-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--text-heading);
    text-align: center;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.auth-title .text-gold {
    color: var(--gold-main);
}

.auth-subtitle {
    font-size: 18px;
    color: var(--gold-main);
    text-align: center;
    margin: 2px 0 16px 0;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(199, 146, 42, 0.15);
}

/* Subtitle styling for both Login and Register */
.auth-subtitle.subtitle-gold,
.card-register .auth-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-main);
    letter-spacing: 0.2px;
    margin: 2px 0 16px 0;
    text-shadow: 0 1px 2px rgba(199, 146, 42, 0.15);
}

/* Luxury Floral / Rosette Divider */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 22px auto;
    width: 100%;
}

.ornament-line {
    width: 50px;
    height: 1px;
    background: var(--gold-line);
    opacity: 0.85;
}

.ornament-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-main);
}

/* Input Fields */
.input-field-group {
    margin-bottom: 14px;
    position: relative;
}

.input-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    height: 48px;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.input-box:focus-within {
    border-color: var(--gold-main);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.input-box .field-icon-left {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-main);
    margin-right: 12px;
    flex-shrink: 0;
    width: 20px;
}

.input-box .field-icon-left svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold-main);
    stroke-width: 1.8;
    fill: none;
}

.input-box input {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-body);
    width: 100%;
    height: 100%;
    padding: 0;
}

.input-box input::placeholder {
    color: #6b7280;
    font-size: 13.5px;
    opacity: 0.85;
}

.input-box .field-icon-right {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9082;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
    user-select: none;
}

.input-box .field-icon-right:hover {
    color: var(--gold-main);
}

.input-box .field-icon-right svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

/* 2-Column Row for First/Last Name */
.input-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.input-row-2col .input-field-group {
    margin-bottom: 0;
}

/* Checkboxes and Links */
.auth-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 20px 0;
    font-size: 13px;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--gold-main);
    border: 1.5px solid var(--gold-main);
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}

.auth-link-gold {
    color: var(--gold-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

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

/* Buttons */
.btn-gold-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--radius-btn);
    background: var(--gold-gradient);
    color: #ffffff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--gold-shadow);
    transition: all 0.2s ease;
}

.btn-gold-submit:hover {
    background: var(--gold-gradient-hover);
    box-shadow: 0 6px 18px var(--gold-shadow);
    transform: translateY(-1px);
}

.btn-gold-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--gold-shadow);
}

/* OR Divider */
.auth-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0 16px 0;
    width: 100%;
}

.auth-or-divider::before,
.auth-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider-line);
}

.auth-or-divider span {
    padding: 0 14px;
    font-size: 11px;
    font-weight: 600;
    color: #8c96a3;
    letter-spacing: 0.5px;
}

/* Footer text */
.auth-footer-text {
    text-align: center;
    font-size: 13.5px;
    color: #555555;
    margin: 0;
}

.auth-footer-text a {
    color: var(--gold-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-footer-text a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Security Code Widget in Register */
.security-code-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.security-code-badge {
    min-width: 130px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-input);
    background: var(--gold-transparent-bg);
    color: var(--gold-dark);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 3px rgba(199, 146, 42, 0.08);
}

.btn-code-refresh {
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid var(--gold-main);
    color: var(--gold-main);
    border-radius: var(--radius-input);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-code-refresh:hover {
    background: var(--gold-main);
    color: #ffffff;
}

/* Alert Styling */
.auth-alert {
    padding: 12px 14px;
    border-radius: var(--radius-input);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .auth-gold-card {
        padding: 28px 20px 24px 20px;
    }
    
    .auth-gold-card.card-register {
        padding: 26px 18px 22px 18px;
    }
    
    .input-row-2col {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
