/* ── FamilyBoard Auth Pages ─ shared glassmorphism styles ───────────── */

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

body {
    background-color: #0a0e17;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* ── Animated background bubbles ───────────────────────────────────── */
.bg-bubbles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    animation: float 20s infinite ease-in-out;
}

.bubble-1 {
    width: 320px; height: 320px;
    top: 8%; left: 6%;
    background: radial-gradient(circle, #5B9CFF 0%, transparent 70%);
    --o: 0.30;
    animation-delay: 0s;
    animation-duration: 22s;
}
.bubble-2 {
    width: 420px; height: 420px;
    bottom: 5%; right: 4%;
    background: radial-gradient(circle, #4a7adf 0%, transparent 70%);
    --o: 0.25;
    animation-delay: -6s;
    animation-duration: 26s;
}
.bubble-3 {
    width: 220px; height: 220px;
    top: 55%; left: 58%;
    background: radial-gradient(circle, #7BB8FF 0%, transparent 70%);
    --o: 0.20;
    animation-delay: -12s;
    animation-duration: 18s;
}
.bubble-4 {
    width: 180px; height: 180px;
    top: 15%; right: 18%;
    background: radial-gradient(circle, #3a6fd8 0%, transparent 70%);
    --o: 0.22;
    animation-delay: -3s;
    animation-duration: 24s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: var(--o, 0.25); }
    25%      { transform: translate(30px, -20px) scale(1.05); }
    50%      { transform: translate(-15px, 25px) scale(0.95); opacity: calc(var(--o, 0.25) + 0.08); }
    75%      { transform: translate(20px, 10px) scale(1.02); }
}

/* ── Glass card ────────────────────────────────────────────────────── */
.card {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 44px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Logo ──────────────────────────────────────────────────────────── */
.logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo img {
    width: 220px;
    height: auto;
}

/* ── Typography ────────────────────────────────────────────────────── */
h2 {
    font-size: 1.05em;
    font-weight: 400;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.7);
}

label {
    display: block;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

/* ── Inputs ────────────────────────────────────────────────────────── */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95em;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 16px;
    transition: border-color 0.25s, background 0.25s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: rgba(91, 156, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

input::placeholder { color: rgba(255, 255, 255, 0.25); }

/* ── Buttons ───────────────────────────────────────────────────────── */
button, .btn {
    display: inline-block;
    width: 100%;
    padding: 13px;
    background: #5B9CFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
}

button:hover, .btn:hover {
    background: #4a8bef;
    box-shadow: 0 0 20px rgba(91, 156, 255, 0.3);
}

button:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Utility ───────────────────────────────────────────────────────── */
.message {
    font-size: 0.85em;
    min-height: 20px;
    margin-top: 10px;
    text-align: center;
}

.message.success { color: #4caf50; }
.message.error   { color: #ef5350; }

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 24px 0;
}

.text-link {
    background: none !important;
    border: none;
    color: #5B9CFF;
    font-size: 0.9em;
    cursor: pointer;
    padding: 0;
    width: auto;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none !important;
}

.text-link:hover {
    background: none !important;
    color: #7bb8ff;
    box-shadow: none !important;
}

.footer-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.35);
}

.footer-links a {
    color: #5B9CFF;
    text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

small {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78em;
    margin-top: -10px;
    margin-bottom: 14px;
}

/* ── Verify email page extras ──────────────────────────────────────── */
.icon {
    font-size: 3em;
    margin-bottom: 16px;
}

.success-color { color: #4caf50; }
.error-color   { color: #ef5350; }

/* ── Landing-side: todelt layout (info + login) ─────────────────────── */
body.landing {
    padding: 40px 20px;
    /* Tillat vertikal scroll når innhold er høyere enn viewport,
       og hold bg-bubbles innenfor skjermen horisontalt */
    overflow-y: auto;
    overflow-x: hidden;
    align-items: flex-start;
}

.landing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 980px;
}

.landing-info {
    color: #fff;
    padding: 0 10px;
}

.landing-info .brand {
    font-size: 2.4em;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.landing-info .brand span { color: #5B9CFF; }

.landing-info .tagline {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 28px;
}

.landing-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-info li {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0 10px 28px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-info li:last-child { border-bottom: none; }

.landing-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: #5B9CFF;
    font-weight: 700;
}

.landing-info .footnote {
    margin-top: 20px;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.4);
}

.landing-side .card {
    margin: 0;
    max-width: 100%;
}

@media (max-width: 760px) {
    body.landing { padding: 24px 14px; }

    .landing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
    }
    .landing-info { padding: 0; text-align: center; }
    .landing-info ul { text-align: left; }
    .landing-info .brand { font-size: 2em; }

    /* Card må ikke vokse forbi viewport */
    .landing-side .card {
        padding: 28px 22px;
        width: 100%;
        max-width: 100%;
    }
}
