:root {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #0f172a;
    color: #e5edff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: inherit;
    text-decoration: none;
}

.brand:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.5);
    border-radius: 8px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(229, 237, 255, 0.8);
}

.nav-status {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.mh-header,
.mh-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #0f172a;
    color: #f1f5f9;
}

.mh-main {
    flex: 1;
    padding: 2rem;
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
}

.mh-auth-shell {
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0;
}

.mh-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgb(15 23 42 / 0.08);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}

.mh-auth-card {
    width: 100%;
    max-width: 420px;
    margin-bottom: 0;
    padding: 2rem;
}

.mh-auth-card__header {
    margin-bottom: 1.1rem;
}

.mh-auth-card__subtitle {
    margin: 0.3rem 0 0;
    color: #475569;
}

.mh-auth-card__footer {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #475569;
}

.mh-card h2 {
    margin-top: 0;
}

.mh-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mh-form label {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.mh-form__group {
    display: flex;
    flex-direction: column;
}

.mh-form__group--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.mh-form input,
.mh-form select {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5f5;
    border-radius: 8px;
    font-size: 1rem;
}

.mh-button {
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.mh-button--primary {
    background: #2563eb;
    color: white;
}

.mh-button--secondary {
    background: transparent;
    border: 1px solid #93c5fd;
    color: #2563eb;
}

.mh-button--full {
    width: 100%;
}

.mh-error {
    color: #dc2626;
    font-size: 0.95rem;
}

.mh-link {
    background: none;
    border: none;
    color: #fbbf24;
    font-weight: 600;
    cursor: pointer;
}

.mh-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 0.4rem;
}

.mh-remember {
    font-size: 0.95rem;
    color: #475569;
}

body.mh-auth-body {
    color: #e2e8f0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 45%),
        radial-gradient(circle at 80% 0, rgba(16, 185, 129, 0.2), transparent 55%),
        #020617;
}

body.mh-auth-body .mh-header,
body.mh-auth-body .mh-footer {
    background: rgba(2, 6, 23, 0.55);
    color: #e2e8f0;
    border: 1px solid rgba(15, 23, 42, 0.55);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    width: min(960px, 100%);
    margin: 1rem auto;
    box-shadow: 0 15px 45px rgba(2, 6, 23, 0.55);
}

body.mh-auth-body .mh-main {
    max-width: unset;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem 4rem;
}

body.mh-auth-body .mh-auth-shell {
    width: 100%;
    min-height: auto;
    padding: 0;
    justify-content: center;
}

body.mh-auth-body .mh-card {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 35px 110px rgba(2, 6, 23, 0.7);
    padding: 2.4rem;
    margin-bottom: 0;
    backdrop-filter: blur(18px);
}

body.mh-auth-body .mh-auth-card {
    max-width: 480px;
}

body.mh-auth-body.register-page .mh-auth-card {
    max-width: 720px;
}

body.mh-auth-body .mh-card h2 {
    margin: 0.25rem 0 0;
    font-size: 2rem;
}

body.mh-auth-body .mh-auth-card__subtitle {
    margin-top: 0.75rem;
    color: #a5b4fc;
}

body.mh-auth-body .mh-auth-card__footer {
    margin-top: 1.2rem;
    justify-content: center;
    gap: 0.35rem;
    color: #94a3b8;
}

body.mh-auth-body .mh-form {
    gap: 1rem;
}

body.mh-auth-body .mh-form__group {
    gap: 0.3rem;
}

body.mh-auth-body .mh-form label {
    color: #e2e8f0;
}

body.mh-auth-body .mh-form input,
body.mh-auth-body .mh-form select {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.mh-auth-body .mh-form input::placeholder,
body.mh-auth-body .mh-form select::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

body.mh-auth-body .mh-form input:focus,
body.mh-auth-body .mh-form select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

body.mh-auth-body .mh-remember {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #cbd5f5;
}

body.mh-auth-body .mh-remember input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #6366f1;
}

body.mh-auth-body .mh-button {
    padding: 1rem 1.4rem;
    border-radius: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.mh-auth-body .mh-button--primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 20px 35px rgba(99, 102, 241, 0.35);
}

body.mh-auth-body .mh-button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 25px 45px rgba(99, 102, 241, 0.45);
}

body.mh-auth-body .mh-button--primary:active {
    transform: translateY(0);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.45);
}

body.mh-auth-body .mh-button--secondary {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e2e8f0;
}

body.mh-auth-body .mh-button--secondary:hover {
    border-color: #8b5cf6;
    color: #c4b5fd;
}

body.mh-auth-body .mh-error {
    color: #f87171;
    min-height: 1.25rem;
}

body.mh-auth-body .mh-link {
    color: #38bdf8;
    text-decoration: none;
}

body.mh-auth-body .mh-link:hover {
    text-decoration: underline;
}

body.mh-auth-body .mh-auth-card__footer span {
    color: #cbd5f5;
}

@media (max-width: 640px) {
    body.mh-auth-body .mh-card {
        padding: 2rem;
        border-radius: 22px;
    }

    body.mh-auth-body .mh-header,
    body.mh-auth-body .mh-footer {
        flex-direction: column;
        gap: 0.35rem;
        padding: 1rem;
    }
}
