:root {
    --bg-image: url("backgroud.jpg");
    --bg-overlay: rgba(2, 6, 23, 0.62);

    --card: rgba(255, 255, 255, 0.10);
    --border: rgba(255, 255, 255, 0.18);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.74);
    --placeholder: rgba(255, 255, 255, 0.56);

    --primary: #6ee7ff;
    --primary-2: #a78bfa;

    --radius: 18px;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    overflow: hidden;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    touch-action: manipulation;
}

.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}

.page {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    isolation: isolate;
    overflow: hidden;
    overflow: clip;
}

.bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);

}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 500px at 15% 10%, rgba(110, 231, 255, 0.16), transparent 60%),
                radial-gradient(900px 500px at 85% 0%, rgba(167, 139, 250, 0.18), transparent 65%),
                var(--bg-overlay);
}

.card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 20px;
}

.header {
    margin-bottom: 14px;
}

.title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
}

.subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.alert {
    display: none;
    border-radius: 14px;
    border: 1px solid rgba(251, 113, 133, 0.45);
    background: rgba(251, 113, 133, 0.12);
    color: rgba(255, 255, 255, 0.90);
    padding: 10px 12px;
    font-size: 13px;
    margin: 12px 0;
}

.form {
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

label {
    font-size: 13px;
    color: var(--muted);
}

input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(2, 6, 23, 0.36);
    color: var(--text);
    padding: 14px 14px;
    font-size: 16px;
    outline: none;
    transition: border-color 160ms ease, background 160ms ease;
}

input::placeholder { color: var(--placeholder); }

input:focus {
    border-color: rgba(110, 231, 255, 0.62);
    background: rgba(2, 6, 23, 0.44);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 650;
    color: #071018;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    cursor: pointer;
    transition: transform 120ms ease, filter 160ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.home-foot {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero .word-1, .hero .word-2 {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(12%);
    animation: rotateWords 6s;
    animation-iteration-count: 1;
    animation-fill-mode: both;
    will-change: opacity, transform;
    white-space: nowrap;
}

.hero .word-1 { animation-delay: 0s; font-size: clamp(10vw, 10vw, 42px); }
.hero .word-2 { animation-delay: 3s; font-size: clamp(10vw, 10vw, 42px); }

@keyframes rotateWords {
    0%   { opacity: 0; transform: translateY(20%); }
    50%  { opacity: 1; transform: translateY(-20%); }
    100% { opacity: 1; transform: translateY(-20%); }
}

@media (min-width: 480px) {
    .card { padding: 22px; }
}