/* ============================================================
   AUTH — login overlay, demo banner, sign-in button, watermarks
   ============================================================ */

/* --- Corner auth button ------------------------------------ */
.auth-btn {
    position: fixed;
    top: 10px;
    right: 68px; /* to the left of theme toggle */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--navy-blue);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--shadow-blue);
    z-index: 1100;
}

.auth-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px var(--shadow-blue);
}

@media (max-width: 768px) {
    .auth-btn { top: 10px; right: 60px; width: 36px; height: 36px; font-size: 14px; }
}

/* --- Demo mode banner -------------------------------------- */
.demo-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: linear-gradient(90deg,
        rgba(242, 183, 5, 0.95),
        rgba(212, 168, 44, 0.95));
    color: var(--deep-navy);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 8px 60px;
    z-index: 1050;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(138, 109, 26, 0.15);
    display: none;
}

.demo-banner.visible { display: block; }

.demo-banner a {
    color: var(--deep-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-banner a:hover { opacity: 0.75; }

/* Push page down when banner visible */
body.has-demo-banner { padding-top: 34px; }

@media (max-width: 768px) {
    .demo-banner { font-size: 12px; padding: 8px 50px; }
    body.has-demo-banner { padding-top: 32px; }
}

/* --- Login overlay (full-page) ----------------------------- */
.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,
        var(--cream-beige) 0%,
        var(--warm-beige) 50%,
        var(--sand) 100%);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

.login-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

/* Floating sunflowers inside the login overlay */
.login-bg-hearts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid var(--navy-blue);
    color: var(--navy-blue);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px var(--shadow-blue);
}

.login-close:hover {
    transform: rotate(90deg);
    background: var(--warm-beige);
}

.login-card {
    background: white;
    border-radius: 28px;
    padding: 48px 36px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px var(--shadow-blue);
    border: 1px solid rgba(168, 213, 226, 0.3);
    position: relative;
    z-index: 1;
    animation: cardAppear 0.5s ease-out;
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 64px;
    line-height: 1;
    animation: pulse 2.5s ease-in-out infinite;
}

.login-title {
    font-family: 'Mrs Saint Delafield', cursive;
    font-size: 56px;
    color: var(--navy-blue);
    margin-top: 8px;
    line-height: 1;
}

.login-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: var(--deep-navy);
    font-style: italic;
    margin-top: 4px;
    opacity: 0.8;
}

/* --- Form -------------------------------------------------- */
.login-form { display: flex; flex-direction: column; }

.login-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--soft-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    margin-top: 12px;
}

.login-input {
    padding: 14px 16px;
    border: 1.5px solid rgba(168, 213, 226, 0.5);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--deep-navy);
    background: var(--cream-beige);
    transition: all 0.2s ease;
    outline: none;
}

.login-input:focus {
    border-color: var(--soft-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 168, 44, 0.15);
}

.login-error {
    color: #c0392b;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-top: 12px;
    min-height: 18px;
    text-align: center;
}

.login-submit {
    margin-top: 20px;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--navy-blue), var(--soft-blue));
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(138, 109, 26, 0.25);
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 109, 26, 0.35);
}

.login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--deep-navy);
    opacity: 0.7;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .login-card   { padding: 36px 24px; border-radius: 22px; }
    .login-title  { font-size: 48px; }
    .login-logo   { font-size: 52px; }
}

/* --- Demo watermark on cards ------------------------------- */
body.demo-mode .card::before {
    content: 'SAMPLE';
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    background: rgba(242, 183, 5, 0.12);
    border: 1px solid rgba(242, 183, 5, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
    opacity: 1;
    height: auto;
    z-index: 2;
}

body.demo-mode .gallery-item::after {
    content: 'SAMPLE';
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    background: rgba(0, 0, 0, 0.55);
    padding: 3px 7px;
    border-radius: 8px;
    z-index: 2;
}
