@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #07111f;
    --panel: #0d1a2b;
    --panel-light: #122238;
    --text: #f4f8ff;
    --muted: #93a4b9;
    --accent: #27d9ef;
    --blue: #3978ff;
    --border: rgba(158, 187, 222, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 12% 30%, rgba(39, 217, 239, 0.09), transparent 38%),
        radial-gradient(ellipse at 90% 80%, rgba(57, 120, 255, 0.12), transparent 35%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 78px;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: rgba(7, 17, 31, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: 175px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav > a,
.nav-drop-btn {
    padding: 10px 0;
    background: none;
    border: 0;
    color: #c2cede;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.nav-drop-btn:hover {
    color: var(--accent);
}

.nav-drop-btn {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-drop-btn i {
    font-size: 10px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    width: 220px;
    padding: 8px;
    display: none;
    background: #102036;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #c2cede;
    font-size: 12px;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: rgba(39, 217, 239, 0.08);
    color: var(--accent);
}

.header-cta,
.nav-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 17px;
    border-radius: 8px;
    background: linear-gradient(110deg, var(--blue), #2361e9);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover,
.nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(57, 120, 255, 0.25);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--panel);
    color: white;
    cursor: pointer;
}

.mobile-nav-actions {
    display: none;
}

/* Main login area */

.login-page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 65px 28px 25px;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 440px);
    align-items: center;
    gap: clamp(35px, 7vw, 100px);
}

/* Welcome panel */

.welcome-panel {
    max-width: 550px;
    padding: 20px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid rgba(39, 217, 239, 0.2);
    border-radius: 50px;
    background: rgba(39, 217, 239, 0.06);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(39, 217, 239, 0.65);
}

.welcome-panel h1 {
    margin-top: 28px;
    font-size: clamp(35px, 4.2vw, 58px);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -2px;
}

.welcome-panel h1 span {
    display: block;
    color: var(--accent);
}

.welcome-description {
    max-width: 460px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.feature-list {
    display: grid;
    gap: 25px;
    margin-top: 38px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(39, 217, 239, 0.15);
    border-radius: 13px;
    background: rgba(39, 217, 239, 0.07);
    color: var(--accent);
    font-size: 17px;
}

.feature-item h3 {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 700;
}

.feature-item p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.welcome-footer {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 290px;
    margin-top: 50px;
    color: #71849e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-line {
    height: 1px;
    flex: 1;
    background: var(--border);
}

/* Login card */

.login-card {
    width: 100%;
    padding: 34px;
    background: linear-gradient(145deg, rgba(18, 34, 56, 0.98), rgba(11, 24, 41, 0.98));
    border: 1px solid rgba(158, 187, 222, 0.18);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-icon {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(39, 217, 239, 0.17), rgba(57, 120, 255, 0.13));
    border: 1px solid rgba(39, 217, 239, 0.2);
    color: var(--accent);
    font-size: 23px;
}

.secure-label {
    color: #8da5c1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.secure-label i {
    color: var(--accent);
    margin-right: 4px;
}

.form-heading {
    margin: 27px 0;
}

.form-heading h2 {
    font-size: 27px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.form-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.login-form {
    display: grid;
    gap: 22px;
}

.form-group {
    min-width: 0;
}

.form-group > label,
.label-row > label {
    display: block;
    margin-bottom: 9px;
    color: #dce7f5;
    font-size: 11px;
    font-weight: 700;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.label-row > label {
    margin-bottom: 9px;
}

.label-row a {
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #8296af;
    font-size: 13px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    min-width: 0;
    height: 51px;
    padding: 0 44px;
    border: 1px solid rgba(158, 187, 222, 0.17);
    border-radius: 10px;
    outline: none;
    background: rgba(4, 13, 25, 0.48);
    color: var(--text);
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder {
    color: #61738b;
}

.input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(39, 217, 239, 0.08);
}

.password-toggle {
    position: absolute;
    right: 12px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #8296af;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--accent);
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: #b4c3d6;
    font-size: 11px;
    cursor: pointer;
}

.remember-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.custom-check {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1px solid #526780;
    border-radius: 4px;
    background: rgba(4, 13, 25, 0.5);
}

.remember-option input:checked + .custom-check {
    background: var(--accent);
    border-color: var(--accent);
}

.remember-option input:checked + .custom-check::after {
    content: "\2713";
    color: #07111f;
    font-size: 12px;
    font-weight: 800;
}

.remember-option input:focus-visible + .custom-check {
    outline: 2px solid white;
    outline-offset: 3px;
}

.submit-btn {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(105deg, #3478ff, #2461ed);
    color: white;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(52, 120, 255, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(52, 120, 255, 0.25);
}

.submit-btn i {
    font-size: 12px;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 27px 0 17px;
    color: #7387a0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-divider::before,
.form-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.create-account-btn {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #e2ebf7;
    font-size: 11px;
    font-weight: 700;
    transition: border-color 0.2s, background 0.2s;
}

.create-account-btn:hover {
    border-color: rgba(39, 217, 239, 0.5);
    background: rgba(39, 217, 239, 0.04);
}

.create-account-btn i {
    color: var(--accent);
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 23px;
    color: #8092a8;
    font-size: 10px;
    text-align: center;
}

.security-note i {
    color: var(--accent);
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 35px;
    color: #71849a;
    font-size: 10px;
}

/* Tablet */

@media (max-width: 1050px) {
    .site-header {
        gap: 15px;
        padding-inline: 3%;
    }

    .brand img {
        width: 145px;
    }

    .main-nav {
        gap: 13px;
    }

    .main-nav > a,
    .nav-drop-btn {
        font-size: 11px;
    }

    .login-page {
        padding-top: 45px;
    }

    .login-layout {
        gap: 35px;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    }

    .login-card {
        padding: 27px;
    }
}

/* Mobile navigation and layout */

@media (max-width: 800px) {
    .site-header {
        min-height: 70px;
        padding: 10px 5%;
        gap: 12px;
    }

    .brand img {
        width: 145px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        flex-shrink: 0;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        max-height: calc(100dvh - 71px);
        overflow-y: auto;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 15px 5% 20px;
        background: #0b1829;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
    }

    .main-nav.is-open {
        display: flex;
        flex-direction: column;
    }

    .main-nav > a,
    .nav-drop-btn {
        width: 100%;
        min-height: 43px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 11px 0;
        border-bottom: 1px solid rgba(158, 187, 222, 0.08);
        font-size: 13px;
        text-align: left;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        margin: 0 0 8px;
        display: none;
        border-radius: 9px;
        box-shadow: none;
        background: rgba(4, 13, 25, 0.55);
    }

    .nav-dropdown.is-open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 11px 13px;
    }

    .mobile-nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 17px;
    }

    .nav-register,
    .nav-login {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 9px;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
    }

    .nav-login {
        background: var(--panel-light);
        color: white;
    }

    .login-page {
        padding: 35px 20px 20px;
    }

    .login-layout {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 28px;
        margin: 0 auto;
    }

    .welcome-panel {
        padding: 0;
    }

    .welcome-panel h1 {
        margin-top: 20px;
        font-size: clamp(34px, 8vw, 46px);
        letter-spacing: -1.5px;
    }

    .welcome-description {
        margin-top: 13px;
        font-size: 13px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-top: 24px;
    }

    .feature-icon {
        width: 43px;
        height: 43px;
    }

    .welcome-footer {
        display: none;
    }

    .login-card {
        padding: 28px;
        border-radius: 16px;
    }

    .page-footer {
        max-width: 500px;
        margin: 0 auto;
        padding-top: 25px;
        font-size: 9px;
    }
}

/* Small phones */

@media (max-width: 420px) {
    .site-header {
        min-height: 64px;
    }

    .brand img {
        width: 125px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .login-page {
        padding: 27px 14px 16px;
    }

    .welcome-panel h1 {
        font-size: 33px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 0.8px;
    }

    .login-card {
        padding: 22px 18px;
    }

    .form-heading h2 {
        font-size: 24px;
    }

    .page-footer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}