* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter',sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}
.blob,
.grid-bg,
.br {
    display: none;
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    padding: 0 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-logo img {
    height: 42px;
    width: 152px;
    object-fit: contain;
    object-position: left;
    display: block;
}
.nav-hint {
    font-size: 13px;
    color: var(--muted);
}
.nav-btn {
    background: linear-gradient(135deg,var(--accent),#1d4ed8);
    color: var(--text-inverse);
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Inter',sans-serif;
    box-shadow: 0 3px 12px rgba(37,99,235,.3);
    transition: all .2s;
}
.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(37,99,235,.45);
}
.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 24px 48px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(15,26,78,.08);
    animation: cardIn .6s ease both;
}
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.auth-title {
    font-family: 'Space Grotesk',sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    text-align: center;
}
.auth-sub {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 16px;
}
.features-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 22px;
}
.feat-pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px 11px;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.two-col .form-group {
    min-width: 0;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-group input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .2s,box-shadow .2s;
}
.form-group input::placeholder {
    color: var(--muted);
}
.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.pw-bar {
    height: 3px;
    border-radius: 99px;
    background: var(--border);
    margin-top: 6px;
    overflow: hidden;
}
.pw-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: all .3s;
}
.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,var(--text),var(--accent));
    color: var(--text-inverse);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter',sans-serif;
    box-shadow: 0 4px 20px rgba(37,99,235,.3);
    transition: all .25s;
    margin-top: 4px;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,99,235,.45);
}
.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}
.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    color: #1d4ed8;
}

/* override main.css dark globals */

body::before {
    display: none!important;
}
h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk',sans-serif;
}
.auth-card .form-group input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Inter',sans-serif;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .2s,box-shadow .2s;
}
.auth-card .form-group input::placeholder {
    color: var(--muted);
}
.auth-card .form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    background: var(--surface);
}
#toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 14px;
    color: var(--text);
    transform: translateY(80px);
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(15,26,78,.1);
}
#toast.show {
    transform: translateY(0);
    opacity: 1;
}
#toast.error {
    border-color: var(--red);
    color: var(--red);
}
#toast.success {
    border-color: var(--green);
    color: var(--green);
}

.pw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.pw-input-wrap input {
    width: 100%;
    padding-right: 44px !important;
}
.pw-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: 6px;
    transition: color .2s, background .2s;
    user-select: none;
}
.pw-toggle-btn:hover {
    color: var(--text);
    background: var(--surface2, rgba(0,0,0,0.05));
}
.pw-toggle-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}