.hidden {
    display: none !important;
}


/* =========================
   LOGIN
========================= */

.login-screen {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}


.login-container {
    width: min(420px, 100%);

    text-align: center;
}


.login-logo {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.28em;
}


.login-title {
    font-size: clamp(52px, 15vw, 90px);

    line-height: 0.9;

    font-weight: 950;
    letter-spacing: -0.07em;

    margin-bottom: 24px;
}


.login-subtitle {
    max-width: 360px;

    margin: 0 auto 32px;

    line-height: 1.6;

    opacity: 0.65;
}


.google-login {
    width: 100%;

    min-height: 56px;

    border: 0;
    border-radius: 16px;

    background: white;
    color: #111;

    font-size: 16px;
    font-weight: 750;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.google-login:hover {
    transform: translateY(-2px);
}


.google-login:disabled {
    opacity: 0.6;
    cursor: wait;
}


.google-icon {
    font-size: 20px;
    font-weight: 900;
}


.login-note {
    margin-top: 18px;
    font-size: 22px;
}


/* =========================
   ACCOUNT
========================= */

.account-area {
    display: flex;
    align-items: center;
    gap: 10px;
}


.user-photo {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    object-fit: cover;
}


.user-info {
    display: flex;
    flex-direction: column;

    text-align: right;
}


.user-info strong {
    font-size: 13px;
}


.user-info span {
    font-size: 11px;
    opacity: 0.5;
}


.logout-btn {
    border: 0;
    background: transparent;

    opacity: 0.5;

    cursor: pointer;
}


.logout-btn:hover {
    opacity: 1;
}


@media (max-width: 650px) {

    .user-info {
        display: none;
    }

}

/* ========================================
   KNAXNES — LOGIN PAGE
   ======================================== */

.login-page {
    --login-bg: #08090b;
    --login-card: #101114;
    --login-border: #25262b;
    --login-text: #f5f5f5;
    --login-muted: #85868f;
    --login-accent: #8ccfff;

    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 50% 38%,
            rgba(199, 255, 101, 0.055) 0%,
            transparent 48%
        ),
        var(--login-bg);
    color: var(--login-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

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

.login-page .login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page .login-container {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    background: rgba(16, 17, 20, 0.94);
    border: 1px solid var(--login-border);
    border-radius: 22px;
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

/* Header */

/* Header */

.login-page .login-header {
    min-height: 76px;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--login-border);
}

.login-page .login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-page .login-version {
    color: var(--login-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-align: right;
}

.login-page .brand-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--login-accent);
    color: #10110c;
    font-size: 16px;
    font-weight: 900;
}

.login-page .login-logo {
    color: var(--login-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Main content */

.login-page .login-content {
    padding: 40px 32px 30px;
}

.login-page .login-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--login-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.login-page .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--login-accent);
    box-shadow: 0 0 12px rgba(199, 255, 101, 0.35);
}

.login-page .login-title {
    margin: 36px 0 18px;
    color: var(--login-text);
    font-size: clamp(58px, 12vw, 82px);
    line-height: 0.86;
    font-weight: 900;
    letter-spacing: -5px;
}

.login-page .login-title span {
    color: var(--login-accent);
}

.login-page .login-subtitle {
    margin-bottom: 12px;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
    text-align: center;
}

.login-page .login-divider {
    height: 1px;
    margin: 28px 0;
    background: var(--login-border);
}

/* Benefits */

.login-page .login-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.login-page .benefit-item {
    display: flex;
    align-items: center;
    text-align: left;
}

.login-page .benefit-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #303137;
    border-radius: 11px;
    background: #17181c;
    color: var(--login-accent);
    font-size: 17px;
}

.login-page .benefit-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.login-page .benefit-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-page .benefit-item strong {
    color: #e9e9ec;
    font-size: 12px;
    font-weight: 650;
    margin-left: 12px;
}

.login-page .benefit-item div span {
    color: var(--login-muted);
    font-size: 11px;
    margin-left: 12px;
}

/* Google login button */

.login-page .google-login {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--login-accent);
    border-radius: 12px;
    background: var(--login-accent);
    color: #10110c;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.login-page .google-login:hover {
    transform: translateY(-3px);
    background: #67befb;
}

.login-page .google-login:active {
    transform: translateY(0);
}

.login-page .google-login:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.login-page .google-login:disabled,
.login-page .google-login:disabled * {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.login-page .google-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #fff;
    color: #4285f4;
    font-size: 15px;
    font-weight: 800;
}

.login-page .login-arrow {
    margin-left: auto;
    font-size: 20px;
    transition: transform 180ms ease;
}

.login-page .google-login:hover .login-arrow {
    transform: translateX(3px);
}

/* Feedback and footer */

.login-page .login-error {
    margin-top: 12px;
    color: #ff8585;
    font-size: 12px;
    line-height: 1.5;
}

.login-page .login-note {
    margin: 0;
    color: var(--login-muted);
    font-size: 10px;
    text-align: center;
    line-height: 1.6;
}

.login-page .login-footer {
    min-height: 53px;
    padding: 0 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    border-top: 1px solid var(--login-border);
    color: #696a72;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-page .footer-separator {
    width: 3px;
    height: 3px;

    border-radius: 50%;
    background: var(--login-accent);
}

/* Normal mouse cursor everywhere */
.login-page,
.login-page * {
    cursor: default;
}

/* Pointer only for the Google login button */
.login-page .google-login,
.login-page .google-login *,
.login-page .email-submit {
    cursor: pointer;
}

.login-page .email-login input {
    cursor: text;
}

/* Email login */

.login-page .email-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.login-page .email-login input {
    width: 100%;
    height: 54px;
    padding: 0 15px;

    border: 1px solid var(--login-border);
    border-radius: 12px;

    background: #17181c;
    color: var(--login-text);

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.login-page .email-login input::placeholder {
    color: #696a72;
}

.login-page .email-login input:focus {
    border-color: var(--login-accent);
    background: #1a1b20;
    box-shadow: 0 0 0 3px rgba(140, 207, 255, 0.08);
}

.login-page .email-submit {
    width: 100%;
    min-height: 48px;

    border: 1px solid var(--login-border);
    border-radius: 12px;

    background: #17181c;
    color: var(--login-text);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.login-page .email-submit:hover {
    transform: translateY(-2px);
    background: #1d1e23;
    border-color: #3a3b42;
}

.login-page .email-submit:active {
    transform: translateY(0);
}

.login-page .email-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Email page layout */

.login-page .email-page-content .login-eyebrow {
    margin-bottom: 0;
}

.login-page .email-page-content .login-title {
    margin: 36px 0 18px;
}

.login-page .email-page-content .login-subtitle {
    margin-bottom: 12px;
}

.login-page .email-page-content .email-login {
    width: 100%;
    margin: 0;
}

/* Confirmation page */

.login-page .confirmation-box {
    width: 100%;
    padding: 16px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--login-border);
    border-radius: 12px;

    background: #17181c;

    text-align: left;
}

.login-page .confirmation-label {
    color: var(--login-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.login-page .confirmation-box strong {
    color: var(--login-text);
    font-size: 13px;
    font-weight: 500;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-page .confirmation-info {
    width: 0;
    height: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    color: var(--login-muted);
    font-size: 0;
    line-height: 0;
    text-align: center;

    transition:
        width 180ms ease,
        height 180ms ease,
        margin 180ms ease,
        font-size 180ms ease,
        line-height 180ms ease;
}

.login-page .confirmation-info.visible {
    width: 100%;
    height: auto;
    min-height: 18px;

    margin-top: 8px;
    margin-bottom: 8px;

    font-size: 12px;
    line-height: 1.5;
}

.login-page .confirmation-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;

    border: 1px solid var(--login-accent);
    border-radius: 12px;

    background: var(--login-accent);
    color: #10110c;

    font-family: inherit;
    font-size: 12px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease,
        opacity 180ms ease;
}

.login-page .confirmation-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #67befb;
}

.login-page .confirmation-submit:active:not(:disabled) {
    transform: translateY(0);
}

.login-page .confirmation-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.create-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}