:root {
    --gate-sky-50: #f0f9ff;
    --gate-sky-100: #e0f2fe;
    --gate-sky-200: #bae6fd;
    --gate-sky-300: #7dd3fc;
    --gate-sky-400: #38bdf8;
    --gate-sky-500: #0ea5e9;
    --gate-sky-600: #0284c7;
    --gate-sky-700: #0369a1;
    --gate-ink: #0c4a6e;
    --gate-muted: #64748b;
    --gate-card: rgba(255, 255, 255, 0.92);
    --gate-radius: 22px;
    --gate-font: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: var(--gate-font);
    color: var(--gate-ink);
    background: var(--gate-sky-50);
}

.gate-auth {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 85% 65% at 100% 0%, rgba(186, 230, 253, 0.45) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 0% 100%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
        var(--gate-sky-50);
}

.gate-auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.gate-auth-orb--1 {
    width: 340px;
    height: 340px;
    top: -48px;
    right: -48px;
    background: radial-gradient(circle at 72% 28%, rgba(125, 211, 252, 0.38) 0%, rgba(224, 242, 254, 0.15) 42%, transparent 68%);
    filter: blur(28px);
    opacity: 0.9;
}

.gate-auth-orb--2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -60px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 72%);
}

.gate-auth-orb--3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 12%;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.7) 0%, transparent 70%);
}

.gate-auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 18%, transparent 100%);
    pointer-events: none;
}

.gate-auth-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}

.gate-auth-panel {
    background: var(--gate-card);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--gate-radius);
    padding: 28px 32px 32px;
    box-shadow:
        0 4px 6px rgba(2, 132, 199, 0.04),
        0 24px 48px rgba(2, 132, 199, 0.1);
    backdrop-filter: blur(12px);
}

.gate-auth-panel-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.gate-auth-panel-logo img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.gate-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gate-sky-700);
    background: var(--gate-sky-100);
    border: 1px solid var(--gate-sky-200);
    border-radius: 999px;
}

.gate-auth-badge i {
    font-size: 0.85rem;
    color: var(--gate-sky-500);
}

.gate-auth-heading {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--gate-ink);
}

.gate-auth-lead {
    margin: 0 0 28px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--gate-muted);
}

.gate-form-title {
    margin: 0 0 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gate-sky-700);
}

.gate-field {
    margin-bottom: 18px;
}

.gate-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gate-sky-700);
}

.gate-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gate-ink);
    background: var(--gate-sky-50);
    border: 1.5px solid var(--gate-sky-200);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gate-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.gate-input:hover {
    border-color: var(--gate-sky-300);
}

.gate-input:focus {
    background: #fff;
    border-color: var(--gate-sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.gate-input.is-invalid {
    border-color: #f87171;
    background: #fff5f5;
}

.gate-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2);
}

.gate-invalid {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc2626;
}

.gate-pass-wrap {
    position: relative;
}

.gate-pass-wrap .gate-input {
    padding-right: 48px;
}

.gate-pass-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--gate-sky-500);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.gate-pass-toggle:hover {
    background: var(--gate-sky-100);
    color: var(--gate-sky-600);
}

.gate-pass-toggle i {
    font-size: 1rem;
    pointer-events: none;
}

.gate-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.gate-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gate-sky-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gate-link:hover {
    color: var(--gate-sky-700);
    text-decoration: underline;
}

.gate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--gate-sky-400) 0%, var(--gate-sky-600) 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gate-btn:hover,
.gate-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.42);
    filter: brightness(1.03);
    color: #fff;
}

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

.gate-footer-link {
    margin-top: 22px;
    text-align: center;
}

.gate-alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    border-radius: 14px;
}

.gate-alert--success {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.gate-alert--info {
    color: var(--gate-sky-700);
    background: var(--gate-sky-50);
    border: 1px solid var(--gate-sky-200);
}

.gate-verify-text {
    margin: 0 0 20px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--gate-muted);
}

.gate-verify-text strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--gate-ink);
}

@media (max-width: 480px) {
    .gate-auth-panel {
        padding: 28px 22px 24px;
    }

    .gate-auth-heading {
        font-size: 1.5rem;
    }
}
