/* Wedding Floorplan - Auth pages (login & register)
   Modern SaaS aesthetic - full viewport, centered card, branded gradient. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

body.wfp-standalone-auth {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top left, rgba(212, 165, 116, 0.25), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(216, 165, 160, 0.2), transparent 50%),
        radial-gradient(ellipse at center, rgba(168, 181, 160, 0.15), transparent 70%),
        linear-gradient(135deg, #faf7f2 0%, #f4ede2 100%);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, sans-serif;
}

.wfp-auth-wrap {
    --wfp-ivory: #faf7f2;
    --wfp-cream: #f4ede2;
    --wfp-sand: #e8dfd0;
    --wfp-warm-taupe: #d4a574;
    --wfp-warm-taupe-dark: #b88959;
    --wfp-charcoal: #2a2722;
    --wfp-ink: #1a1814;
    --wfp-text: #4a443d;
    --wfp-text-muted: #8a8275;
    --wfp-border: #e8e3dc;
    --wfp-sage: #a8b5a0;
    --wfp-blush: #d8a5a0;

    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--wfp-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
}

.wfp-auth-wrap * { box-sizing: border-box; }

.wfp-auth-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 16px;
    padding: 48px 48px;
    box-shadow:
        0 1px 3px rgba(42, 39, 34, 0.04),
        0 8px 24px rgba(42, 39, 34, 0.08),
        0 24px 48px rgba(42, 39, 34, 0.06);
    position: relative;
}

/* Brand header */
.wfp-auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.wfp-auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #d4a574, #d8a5a0);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.wfp-auth-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--wfp-ink);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.wfp-auth-brand-subtitle {
    color: var(--wfp-text-muted);
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

/* Form */
.wfp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wfp-auth-form label {
    display: block;
}

.wfp-auth-form label > span:first-child {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--wfp-ink);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.wfp-auth-form input[type="text"],
.wfp-auth-form input[type="email"],
.wfp-auth-form input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--wfp-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--wfp-ink);
    background: var(--wfp-ivory);
    transition: all 0.15s ease;
    -webkit-appearance: none;
}

.wfp-auth-form input::placeholder {
    color: var(--wfp-text-muted);
    opacity: 0.6;
}

.wfp-auth-form input:hover {
    border-color: var(--wfp-warm-taupe);
}

.wfp-auth-form input:focus {
    outline: none;
    border-color: var(--wfp-warm-taupe);
    background: white;
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.12);
}

.wfp-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wfp-auth-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--wfp-text-muted);
}

.wfp-auth-remember {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
    background: transparent !important;
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
}

.wfp-auth-remember input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--wfp-warm-taupe);
    cursor: pointer;
}

.wfp-auth-remember > span {
    font-size: 14px !important;
    color: var(--wfp-text) !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.wfp-auth-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--wfp-charcoal), var(--wfp-ink));
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(42, 39, 34, 0.15);
    margin-top: 8px;
}

.wfp-auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 39, 34, 0.2);
}

.wfp-auth-submit:active:not(:disabled) {
    transform: translateY(0);
}

.wfp-auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wfp-auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.wfp-auth-message.success {
    background: #f0f5ec;
    color: #4a6e3a;
    border: 1px solid var(--wfp-sage);
}

.wfp-auth-message.error {
    background: #fef2f2;
    color: #c44545;
    border: 1px solid #f3d4d4;
}

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

.wfp-auth-footer a {
    color: var(--wfp-warm-taupe-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.wfp-auth-footer a:hover {
    color: var(--wfp-charcoal);
}

.wfp-auth-footer-small {
    font-size: 13px;
    margin-top: 12px;
}

@media (max-width: 520px) {
    .wfp-auth-card {
        padding: 32px 24px;
        border-radius: 12px;
    }
    .wfp-auth-brand-name {
        font-size: 28px;
    }
    .wfp-auth-row {
        grid-template-columns: 1fr;
    }
}
