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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Full-screen background */
.landing-bg {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
                url("/static/images/landing-bg.20100a5dbd2f.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Centred card */
.landing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Title and tagline */
.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.card-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 32px;
    padding: 0 8px;
}

/* CTA buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.btn-login {
    display: block;
    width: 100%;
    padding: 14px;
    background: #6B3A2A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-login:hover {
    background: #5a3022;
}

.btn-signup {
    display: block;
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    position: relative;
    background: #ffffff;
    padding: 0 16px;
    color: #9ca3af;
    font-size: 14px;
}

/* Google button */
.social-login {
    margin-bottom: 24px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Terms */
.terms {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.terms a {
    color: #6B3A2A;
    text-decoration: none;
    font-weight: 500;
}

.terms a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .landing-card {
        padding: 36px 24px 32px;
        border-radius: 12px;
    }

    .logo-img {
        width: 96px;
        height: 96px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-tagline {
        font-size: 14px;
    }

    /* Auth card pushed toward bottom on very small screens */
    .landing-bg {
        align-items: flex-end;
        padding-bottom: 0;
    }

    .landing-card {
        border-radius: 24px 24px 0 0;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    }

    .landing-features-row {
        display: flex;
    }
}

/* =====================================================
   Features Row (mobile only, hidden on desktop)
   ===================================================== */

.landing-features-row {
    display: none;
    justify-content: center;
    gap: 28px;
    margin: 1rem 0 1.25rem;
}

.landing-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(107, 58, 42, 0.08);
    border: 1px solid rgba(107, 58, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--brown-primary);
}

.landing-feature-item span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}
