@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,500&family=Outfit:wght@400;500;600;800&display=swap');

:root {
    --bg-light: #F4EDE4;
    --card-white: rgba(251, 247, 241, 0.92);
    --text-dark: #1C1410;
    --text-grey: #5C5148;
    --accent-blue: #1C1410;
    --accent-blue-hover: #A85A4A;
    --border: rgba(28, 20, 16, 0.12);
    --error-red: #9B3D3D;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Dynamic background */
.bg-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 10%, #E9D4CB 0%, transparent 42%),
                radial-gradient(circle at 90% 90%, #E8DDD0 0%, transparent 44%);
    z-index: -1;
}

.main-card {
    background: var(--card-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 40px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    animation: cardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo { 
    font-size: 2.6rem; 
    font-weight: 600; 
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    letter-spacing: -0.03em; 
    margin-bottom: 8px; 
}

.tagline { 
    color: var(--text-grey); 
    font-size: 0.95rem; 
    margin-bottom: 32px; 
    font-weight: 400;
}

/* --- Alerts --- */
.error-alert {
    background: #fff5f5;
    color: var(--error-red);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #ffebeb;
}

/* --- Form --- */
.input-group {
    position: relative;
    margin-bottom: 12px;
}

input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-submit:hover { background: var(--accent-blue-hover); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

/* --- Footer --- */
.feature-tags {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tags span {
    font-size: 0.7rem;
    background: rgba(0,0,0,0.04);
    padding: 4px 10px;
    border-radius: 100px;
    color: var(--text-grey);
    font-weight: 500;
}

.success-alert {
    background: #edf6ef;
    color: #1B6B52;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #c9e2d4;
}

.login-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.login-kicker a {
    color: inherit;
    text-decoration: none;
}

.dd-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    font-weight: 650;
    text-decoration: none;
    border-radius: 14px;
    box-sizing: border-box;
}
.footer-links { margin-top: 24px; font-size: 0.8rem; color: var(--text-grey); }
.footer-links a { text-decoration: none; color: var(--accent-blue); font-weight: 600; }

/* --- Animations --- */
.shake { animation: shakeAnim 0.4s double ease-in-out; }
@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}