*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    background: #010d1a;
}

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

.nav-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

.nav-logo img { height: 60px; width: auto; }

.logo-text { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.5px; }

.logo-text em { font-style: normal; color: #ff3e3e; margin-left: 4px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link-item {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-link-item:hover { color: #fff; }

.ocean {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.sky {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        #000d1a 0%, #011524 20%, #021e34 40%,
        #032840 60%, #042d48 78%, #032338 100%
    );
}

.stars { position: absolute; inset: 0; pointer-events: none; }

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--d) ease-in-out infinite var(--del);
}

@keyframes twinkle {
    0%,100% { opacity: var(--a); }
    50%      { opacity: 0.05; }
}

.moon-glow {
    position: absolute;
    top: 7%; right: 17%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(200,230,255,0.11) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.deep-water {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 52%;
    background: linear-gradient(180deg,
        transparent 0%, rgba(0,40,80,0.4) 35%,
        rgba(0,25,55,0.7) 70%, rgba(0,15,40,0.92) 100%
    );
    pointer-events: none;
}

.waves-wrap {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 68%;
    pointer-events: none;
}

svg.wv {
    position: absolute;
    bottom: 0; left: 0;
    width: 200%; height: 100%;
}

@keyframes wL {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes wR {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.wA { animation: wL 22s linear infinite; }
.wB { animation: wR 17s linear infinite; }
.wC { animation: wL 13s linear infinite; }
.wD { animation: wR 19s linear infinite; }
.wE { animation: wL 11s linear infinite; }
.wF { animation: wR 14s linear infinite; }
.wG { animation: wL  8s linear infinite; }
.wH { animation: wR 10s linear infinite; }

.buoy-wrap {
    position: absolute;
    bottom: 43%; left: 62%;
    z-index: 2;
    animation: buoyBob 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes buoyBob {
    0%,100% { transform: translateY(0)     rotate(-2deg); }
    25%      { transform: translateY(-9px)  rotate(1.5deg); }
    50%      { transform: translateY(-4px)  rotate(2.5deg); }
    75%      { transform: translateY(-11px) rotate(-1deg); }
}

.blink { animation: lb 2s ease-in-out infinite; }

@keyframes lb {
    0%,100% { opacity: 1; }
    45%,55% { opacity: 0.08; }
}

.reflection {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 42%;
    background: linear-gradient(0deg, rgba(0,100,180,0.07) 0%, transparent 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.card {
    position: relative;
    z-index: 10;
    width: 100%; max-width: 400px; margin: 20px;
    background: rgba(2,10,22,0.82);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    padding: 44px 40px 36px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 40px 100px rgba(0,0,0,0.85),
        0 0 60px rgba(0,140,200,0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: cardIn 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

.logo-img {
    width: 108px; height: 108px;
    object-fit: contain; margin-bottom: 18px;
    filter: drop-shadow(0 0 16px rgba(255,62,62,0.26)) drop-shadow(0 4px 16px rgba(0,0,0,0.8));
}

.card-header h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 5px; }
.card-header h1 span { color: #ff3e3e; }
.card-header .sub { font-size: 0.66rem; color: rgba(255,255,255,0.26); font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }

.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.divider span { font-size: 0.62rem; color: rgba(255,255,255,0.16); font-weight: 500; white-space: nowrap; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group label { font-size: 0.58rem; font-weight: 700; color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 1.2px; }

.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: 0.16; pointer-events: none; transition: opacity 0.2s; }
.input-wrap:focus-within svg { opacity: 0.45; }

.input-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 13px 16px 13px 40px;
    border-radius: 10px; color: #fff;
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.11); }
.input-wrap input:focus {
    border-color: rgba(255,62,62,0.4);
    background: rgba(255,62,62,0.025);
    box-shadow: 0 0 0 3px rgba(255,62,62,0.06);
}

.btn-login {
    width: 100%;
    background: rgba(255,62,62,0.11);
    color: #fff;
    border: 1px solid rgba(255,62,62,0.32);
    padding: 14px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700; font-size: 0.88rem; letter-spacing: 0.2px;
    cursor: pointer; margin-top: 18px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    position: relative; overflow: hidden;
    transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.btn-login::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,62,62,0.15), transparent 55%);
    opacity: 0;
    transition: opacity 0.22s;
}

.btn-login:hover { background: rgba(255,62,62,0.18); border-color: rgba(255,62,62,0.55); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,62,62,0.2); }
.btn-login:hover::after { opacity: 1; }
.btn-login:active { transform: translateY(0); box-shadow: none; }
.btn-login:disabled { opacity: 0.45; pointer-events: none; }

.err {
    background: rgba(255,62,62,0.07);
    border: 1px solid rgba(255,62,62,0.18);
    color: #ff8080; padding: 10px 14px;
    border-radius: 8px; font-size: 0.77rem;
    margin-top: 12px; display: none; text-align: center;
}

.card-footer { text-align: center; margin-top: 20px; font-size: 0.58rem; color: rgba(255,255,255,0.08); }

@keyframes spin { to { transform: rotate(360deg); } }
