/* =========================================================
   AutoSurat BPS — Halaman Welcome
   Semua styling halaman welcome digabung di file ini.
   app.css tidak dimuat pada halaman welcome agar reset Tailwind
   tidak menimpa ukuran judul dan susunan kartu.
   ========================================================= */

.welcome-autosurat-page,
.welcome-autosurat-page *,
.welcome-autosurat-page *::before,
.welcome-autosurat-page *::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.welcome-autosurat-page {
    --welcome-blue: #2563eb;
    --welcome-blue-hover: #1d4ed8;
    --welcome-cyan: #0ea5e9;
    --welcome-white: #f8fafc;
    --welcome-muted: #cbd5e1;
    --welcome-line: rgba(148, 163, 184, 0.20);
    --welcome-card: rgba(9, 21, 40, 0.72);

    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--welcome-white);
    font-family: ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    background:
        radial-gradient(
            circle at 18% 12%,
            rgba(37, 99, 235, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 78% 55%,
            rgba(14, 165, 233, 0.18),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #020617 0%,
            #071a2f 48%,
            #063653 100%
        );

    background-attachment: fixed;
}

.welcome-autosurat-page a {
    color: inherit;
    text-decoration: none;
}

/* Header & brand */
.welcome-autosurat-page .topbar {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.welcome-autosurat-page .topbar-inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.welcome-autosurat-page .brand-mark {
    width: 58px;
    height: 58px;
    padding: 4px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.28);
}

.welcome-autosurat-page .brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.welcome-autosurat-page .brand-copy {
    min-width: 0;
}

.welcome-autosurat-page .brand-name {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.welcome-autosurat-page .brand-subtitle {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

.welcome-autosurat-page .topbar-label {
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Intro */
.welcome-autosurat-page main {
    width: min(1290px, calc(100% - 40px));
    margin: auto;
    padding: 62px 0 56px;
}

.welcome-autosurat-page .intro {
    max-width: 850px;
    margin: 0 auto 34px;
    text-align: center;
}

.welcome-autosurat-page .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    padding: 8px 12px;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 999px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.12);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.welcome-autosurat-page .eyebrow-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #38bdf8;
}

.welcome-autosurat-page .intro h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 800;
    text-shadow: 0 2px 18px rgba(2, 6, 23, 0.25);
}

.welcome-autosurat-page .intro p {
    max-width: 780px;
    margin: 18px auto 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.75;
}

.welcome-autosurat-page .choice-heading {
    margin: 0 0 16px;
    text-align: center;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Grid kartu akses */
.welcome-autosurat-page .choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Kartu dengan format Satu Surat / Banyak Surat */
.welcome-autosurat-page .choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 390px;
    padding: 34px 34px 30px;
    overflow: hidden;

    color: #e2e8f0;
    background: var(--welcome-card);
    border: 1px solid var(--welcome-line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.18);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.welcome-autosurat-page .choice-card:hover {
    transform: translateY(-2px);
    background: rgba(10, 27, 48, 0.82);
    border-color: rgba(96, 165, 250, 0.38);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.25);
}

/* Icon */
.welcome-autosurat-page .choice-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.20);
}

.welcome-autosurat-page .choice-icon svg {
    display: block;
    width: 38px;
    height: 38px;
}

/* Heading card */
.welcome-autosurat-page .choice-card h2 {
    margin: 0 0 18px;
    color: #f8fafc;
    text-align: center;
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -0.01em;
}

/* Deskripsi */
.welcome-autosurat-page .choice-card .description {
    flex: 1 0 auto;
    margin: 0;
    color: #aebdce;
    font-size: 1rem;
    line-height: 1.85;
    text-align: justify;
    text-justify: inter-word;
}

/* Footer kartu: divider + aksi teks di tengah */
.welcome-autosurat-page .choice-footer {
    width: 100%;
    margin-top: 28px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.welcome-autosurat-page .choice-footer .user-access-form {
    display: flex;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.welcome-autosurat-page .choice-footer .choice-action,
.welcome-autosurat-page .choice-footer a.choice-action,
.welcome-autosurat-page .choice-footer button.choice-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #93c5fd;

    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;

    transition: color 0.18s ease, gap 0.18s ease;
}

.welcome-autosurat-page .choice-footer .choice-action:hover,
.welcome-autosurat-page .choice-footer a.choice-action:hover,
.welcome-autosurat-page .choice-footer button.choice-action:hover {
    color: #dbeafe;
    background: transparent;
    transform: none;
    gap: 12px;
}

.welcome-autosurat-page .choice-footer .choice-action svg {
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

/* Notice */
.welcome-autosurat-page .notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    margin: 22px auto 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.42);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
    font-size: 12px;
    line-height: 1.65;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.welcome-autosurat-page .notice svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    color: #93c5fd;
}

.welcome-autosurat-page .notice strong {
    color: #ffffff;
}

/* Footer halaman */
.welcome-autosurat-page footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
    font-size: 12px;
}

.welcome-autosurat-page footer strong {
    color: #e2e8f0;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .welcome-autosurat-page main {
        width: min(100% - 40px, 720px);
        padding: 44px 0 40px;
    }

    .welcome-autosurat-page .choices {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .welcome-autosurat-page .choice-card {
        min-height: auto;
    }

    .welcome-autosurat-page .choice-card .description {
        flex-grow: 0;
    }
}

@media (max-width: 680px) {
    .welcome-autosurat-page .topbar-inner {
        width: min(100% - 28px, 1120px);
        min-height: 72px;
        gap: 10px;
    }

    .welcome-autosurat-page .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 12px;
    }

    .welcome-autosurat-page .brand-name {
        font-size: 16px;
    }

    .welcome-autosurat-page .brand-subtitle {
        font-size: 11px;
    }

    .welcome-autosurat-page .topbar-label {
        display: none;
    }

    .welcome-autosurat-page main {
        width: min(100% - 28px, 720px);
        padding: 42px 0 38px;
    }

    .welcome-autosurat-page .intro {
        margin-bottom: 28px;
    }

    .welcome-autosurat-page .intro h1 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .welcome-autosurat-page .intro p {
        font-size: 14px;
    }

    .welcome-autosurat-page .choice-card {
        padding: 28px 24px 24px;
    }

    .welcome-autosurat-page .choice-icon {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .welcome-autosurat-page .choice-card h2 {
        font-size: 1.35rem;
    }

    .welcome-autosurat-page .choice-card .description {
        font-size: 0.96rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-autosurat-page *,
    .welcome-autosurat-page *::before,
    .welcome-autosurat-page *::after {
        transition-duration: 0.01ms !important;
    }
}
