/* ===================================================
   Oftalmolaser WiFi Captive Portal
   Brand colors: Blue #1E5FA8 | Red #CC2229 | Navy #1C3464
   =================================================== */

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

:root {
    --blue:  #1E5FA8;
    --red:   #CC2229;
    --navy:  #1C3464;
    --light: #EEF4FB;
    --white: #ffffff;
    --text:  #2d3748;
    --muted: #718096;
}

/* ── Body ──────────────────────────────────────────── */
.portal-body {
    min-height: 100vh;
    background: linear-gradient(160deg, #dceefb 0%, #f0f7ff 50%, #fde8e9 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* ── Decorative background circles ─────────────────── */
.portal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 2rem 1rem;
}

.bg-circle {
    position: fixed;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.bg-circle--top {
    width: 500px;
    height: 500px;
    background: var(--blue);
    top: -160px;
    right: -140px;
}

.bg-circle--bottom {
    width: 420px;
    height: 420px;
    background: var(--red);
    bottom: -140px;
    left: -120px;
}

/* ── Card ───────────────────────────────────────────── */
.portal-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 24px;
    padding: 2.8rem 2.4rem 2.2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 4px 6px rgba(0,0,0,.04),
        0 12px 40px rgba(30, 95, 168, .14),
        0 0 0 1px rgba(30, 95, 168, .06);
}

/* ── Logo ───────────────────────────────────────────── */
.portal-logo {
    margin-bottom: 1.6rem;
}

.portal-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

/* ── Title ──────────────────────────────────────────── */
.portal-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
}

.portal-title span {
    color: var(--blue);
}

/* ── Subtitle ───────────────────────────────────────── */
.portal-subtitle {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

/* ── WiFi icon ──────────────────────────────────────── */
.wifi-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.wifi-icon svg {
    width: 52px;
    height: 52px;
    color: var(--blue);
    opacity: 0.85;
}

/* ── Instagram button ───────────────────────────────── */
.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white);
    text-decoration: none;
    background: linear-gradient(
        135deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    box-shadow: 0 4px 18px rgba(204, 34, 41, .35);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 300px;
    margin-bottom: 1.4rem;
}

.instagram-btn:hover,
.instagram-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(204, 34, 41, .45);
    filter: brightness(1.06);
    color: var(--white);
    text-decoration: none;
}

.instagram-btn:active {
    transform: translateY(0);
}

.ig-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ── Disclaimer ─────────────────────────────────────── */
.portal-disclaimer {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 320px;
    margin: 0 auto;
}

/* ── Footer ─────────────────────────────────────────── */
.portal-footer {
    position: relative;
    z-index: 1;
    margin-top: 1.6rem;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

/* ── Responsive tweaks ──────────────────────────────── */
@media (max-width: 480px) {
    .portal-card {
        padding: 2rem 1.4rem 1.6rem;
        border-radius: 18px;
    }

    .portal-title {
        font-size: 1.4rem;
    }

    .portal-subtitle {
        font-size: 0.97rem;
    }

    .bg-circle--top {
        width: 300px;
        height: 300px;
    }

    .bg-circle--bottom {
        width: 280px;
        height: 280px;
    }
}
