:root {
    --color-primary: #17b978;
    --color-primary-dark: #0e9462;
    --color-bg: #071a3a;
    --color-bg-deep: #030b1c;
    --color-text: #ffffff;
    --color-muted: rgba(200, 214, 240, 0.78);
    --bg-top: #0b2a5a;
    --bg-bottom: #030b1c;
    --font-main: 'Be Vietnam Pro', sans-serif;
    --section-gap: 24px;
}

/* Base reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg-deep);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

/* Wallpaper */
#wallpaper {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 38%, rgba(23, 82, 160, 0.45) 0%, rgba(23, 82, 160, 0) 70%),
        linear-gradient(180deg,
            var(--bg-top) 0%,
            color-mix(in srgb, var(--bg-top) 65%, var(--bg-bottom)) 35%,
            color-mix(in srgb, var(--bg-top) 25%, var(--bg-bottom)) 65%,
            var(--bg-bottom) 100%);
}

#wallpaper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
    pointer-events: none;
}

/* Layout */
.secure-page {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.secure-page .container {
    display: flex;
    justify-content: center;
}

/* Card */
.secure-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(20, 60, 120, 0.35), rgba(10, 32, 74, 0.25));
    border: 1px solid rgba(70, 140, 230, 0.28);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Visual (shield + rings) */
.secure-visual {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto var(--section-gap);
}

.secure-ring {
    position: absolute;
    border-radius: 50%;
}

.secure-ring--outer {
    inset: 0;
    border: 1px solid rgba(23, 185, 120, 0.35);
    background: radial-gradient(circle, rgba(23, 185, 120, 0.12) 0%, rgba(23, 185, 120, 0) 70%);
}

.secure-ring--inner {
    inset: 20px;
    border: 1px dashed rgba(23, 185, 120, 0.45);
    animation: spin 24s linear infinite;
}

.secure-orbit {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.secure-dot {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #2be58f;
    box-shadow: 0 0 12px 2px rgba(43, 229, 143, 0.8);
}

.secure-dot--top {
    top: -5px;
}

.secure-dot--bottom {
    bottom: -5px;
}

.secure-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    -webkit-mask-image: radial-gradient(circle, #000 38%, transparent 68%);
    mask-image: radial-gradient(circle, #000 38%, transparent 68%);
    mix-blend-mode: screen;
    animation: float 4s ease-in-out infinite;
}

/* Text */
.secure-title {
    margin: 0 0 var(--section-gap);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.secure-desc {
    margin: 0 0 var(--section-gap);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-muted);
}

/* Button */
.btn-continue {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border: 0;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 8px 28px rgba(23, 185, 120, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-continue:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 34px rgba(23, 185, 120, 0.55);
}

.btn-continue:active {
    transform: translateY(0) scale(0.98);
}

.btn-continue:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.btn-continue.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Animations */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%); }
    50%      { transform: translate(-50%, -54%); }
}

/* Responsive */
@media (min-width: 992px) {
    .secure-card {
        max-width: 480px;
        padding: 48px 40px;
    }

    .secure-title { font-size: 28px; }
}

@media (max-width: 575.98px) {
    .secure-page { padding: 24px 0; }

    .secure-card {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .secure-visual {
        width: 150px;
        height: 150px;
    }

    .secure-shield {
        width: 132px;
        height: 132px;
    }

    .secure-title { font-size: 22px; }
    .secure-desc { font-size: 14px; }
    .btn-continue { height: 56px; font-size: 15px; }
}

@media (max-width: 359.98px) {
    .secure-title { font-size: 19px; }
}

@media (max-height: 560px) and (orientation: landscape) {
    .secure-page { padding: 16px 0; }
    .secure-card { padding: 20px; }
    .secure-visual { width: 110px; height: 110px; margin-bottom: 16px; }
    .secure-shield { width: 100px; height: 100px; }
    .secure-title,
    .secure-desc { margin-bottom: 16px; }
    .btn-continue { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
