/* ============================================ */
/* TRULY BARE – LUXURY LOGIN                     */
/* Glassmorphism | Gold | Rose | Premium         */
/* ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Playfair+Display:wght@400;500&family=Inter:wght@200;300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --pale-white:    #FAF8F5;
    --rose-pink:     #E8C4C4;
    --bold-red:      #8B1A1A;
    --deep-red:      #6B0F0F;
    --sapphire-gold: #C9A84C;
    --pale-brown:    #C4A882;
    --ash-gray:      #9E9E9E;
    --text-dark:     #1C1C1A;
    --text-medium:   #4A4845;
    --glass-bg:      rgba(255,255,255,0.22);
    --glass-border:  rgba(201,168,76,0.30);
    --glass-shadow:  0 24px 64px rgba(139,26,26,0.12);
    --font-serif:    'Cormorant Garamond', serif;
    --font-display:  'Playfair Display', serif;
    --font-sans:     'Inter', sans-serif;
    --t:             0.28s cubic-bezier(0.4,0,0.2,1);
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(160deg, #FAF6F0 0%, #F5EDE2 50%, #FBF8F3 100%);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 15% 15%, rgba(232,196,196,0.45) 0%, transparent 55%),
        radial-gradient(ellipse 60% 55% at 85% 85%, rgba(201,168,76,0.18) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    from { opacity: 0.8; }
    to   { opacity: 1; }
}

.blob { position: fixed; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.blob-1 { width: 300px; height: 300px; background: rgba(232,196,196,0.5); top: -80px; left: -80px; animation: floatBlob 12s ease-in-out infinite; }
.blob-2 { width: 250px; height: 250px; background: rgba(201,168,76,0.2); bottom: -60px; right: -60px; animation: floatBlob 10s ease-in-out infinite -4s; }

@keyframes floatBlob {
    0%,100% { transform: translate(0,0); }
    50%      { transform: translate(25px,-20px); }
}

/* CARD */
.login-page { position: relative; z-index: 1; width: 100%; max-width: 460px; animation: riseUp 0.9s cubic-bezier(0.22,1,0.36,1) both; }

@keyframes riseUp {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.7);
    overflow: hidden;
}

.login-brand {
    text-align: center;
    padding: 44px 40px 24px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    background: linear-gradient(180deg, rgba(201,168,76,0.06) 0%, transparent 100%);
}

.brand-icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(232,196,196,0.5), rgba(201,168,76,0.3));
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--bold-red);
    box-shadow: 0 4px 16px rgba(139,26,26,0.12);
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 26px; font-weight: 500; letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--sapphire-gold) 55%, var(--text-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: goldShimmer 5s linear infinite;
    display: block; margin-bottom: 6px;
}

.brand-tagline { font-size: 11px; color: var(--ash-gray); letter-spacing: 2.5px; text-transform: uppercase; }

@keyframes goldShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.login-body { padding: 32px 40px 40px; }

.login-greeting { font-family: var(--font-display); font-size: 22px; font-weight: 400; text-align: center; margin-bottom: 6px; }
.login-sub { font-size: 12px; color: var(--ash-gray); text-align: center; margin-bottom: 28px; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: rgba(120,180,120,0.12); border: 1px solid rgba(120,180,120,0.35); color: #3a6b3a; }
.alert-danger  { background: rgba(139,26,26,0.08); border: 1px solid rgba(139,26,26,0.25); color: var(--bold-red); }
.alert-info    { background: rgba(201,168,76,0.10); border: 1px solid rgba(201,168,76,0.30); color: #7a5e1a; }

/* FORM */
.form-group { margin-bottom: 22px; }

.form-label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-medium); margin-bottom: 8px; }

.input-wrap { position: relative; display: flex; align-items: center; }

.input-icon { position: absolute; left: 14px; color: var(--ash-gray); font-size: 15px; pointer-events: none; transition: color var(--t); z-index: 1; }

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 6px;
    padding: 13px 14px 13px 42px;
    font-size: 14px; font-family: var(--font-sans); font-weight: 300;
    color: var(--text-dark); outline: none;
    transition: all var(--t);
}

.form-input::placeholder { color: rgba(120,115,110,0.5); }

.form-input:focus {
    border-color: var(--sapphire-gold);
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 4px 16px rgba(139,26,26,0.06);
}

.input-wrap:focus-within .input-icon { color: var(--sapphire-gold); }

.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 12px; }

.remember-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-medium); cursor: pointer; }
.remember-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--bold-red); cursor: pointer; }

.forgot-link { font-size: 12px; color: var(--bold-red); text-decoration: none; white-space: nowrap; transition: opacity var(--t); }
.forgot-link:hover { opacity: 0.7; }

/* BUTTON */
.btn-submit {
    width: 100%;
    background: var(--bold-red);
    color: white; border: none; border-radius: 50px;
    padding: 16px;
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    font-family: var(--font-sans); font-weight: 400;
    cursor: pointer; transition: all var(--t);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 6px 24px rgba(139,26,26,0.22);
}

.btn-submit::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
    transform: translateX(-100%); transition: transform 0.6s ease;
}

.btn-submit:hover { background: var(--deep-red); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(139,26,26,0.35); }
.btn-submit:hover::before { transform: translateX(100%); }
.btn-submit:active { transform: translateY(0); }

/* FOOTER */
.login-footer { text-align: center; margin-top: 24px; }
.login-footer p { font-size: 13px; color: var(--text-medium); margin-bottom: 12px; }
.login-footer a { color: var(--bold-red); text-decoration: none; font-weight: 400; }
.login-footer a:hover { opacity: 0.8; }

.back-home { font-size: 11px; color: var(--ash-gray); text-decoration: none; letter-spacing: 1.5px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; transition: color var(--t); }
.back-home:hover { color: var(--bold-red); }

.gold-rule { border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent); margin: 22px 0; }
