.auth-shell {
    min-height: 100vh;
    color: var(--auth-text);
    background: radial-gradient(circle at 18% 20%, var(--auth-glow), transparent 28rem), var(--auth-page-bg);
}

.auth-shell-dark {
    --auth-page-bg: linear-gradient(135deg, #151521 0%, #1a1a27 48%, #1e1e2d 100%);
    --auth-hero-bg: #151521;
    --auth-card-bg: #1e1e2d;
    --auth-text: #f7f7fb;
    --auth-muted: #aaa7bc;
    --auth-line: rgba(255, 255, 255, 0.08);
    --auth-glow: rgba(126, 111, 255, 0.2);
}

.auth-shell-light {
    --auth-page-bg: linear-gradient(135deg, #f7f8fb 0%, #eef1f6 48%, #ffffff 100%);
    --auth-hero-bg: #f2f5fb;
    --auth-card-bg: #ffffff;
    --auth-text: #2f2b3d;
    --auth-muted: #6d6b77;
    --auth-line: rgba(47, 43, 61, 0.14);
    --auth-glow: rgba(63, 126, 232, 0.16);
}

.auth-preferences {
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--auth-line);
    border-radius: 30px;
    background: color-mix(in srgb, var(--auth-card-bg) 86%, transparent);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
}

.center-div {
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
}

.auth-shell  .auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15%;
}

@media (max-width: 600px) {
    .auth-shell .auth-page {
        padding: 20px 8%;
    }
}


.auth-shell  .auth-card {
    width: min(100%, 1220px);
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(330px, .85fr);
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 26px;
    background: var(--auth-card-bg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.auth-shell  .auth-hero {
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 30% 22%, var(--auth-glow), transparent 22rem), var(--auth-hero-bg);
}

.auth-shell  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
    color: var(--auth-text);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
}

.auth-shell  .brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--mud-palette-primary);
    color: white;
    font-weight: 900;
}

.auth-shell  .hero-title {
    max-width: 520px;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-shell  .hero-copy {
    max-width: 520px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-shell  .demo-box {
    margin-top: 36px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 35%, transparent);
    border-radius: 12px;
    color: var(--auth-text);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
}

.auth-shell  .auth-form {
    padding: 32px;
    background: var(--auth-card-bg);
}

.auth-shell  .auth-title {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-shell  .auth-subtitle {
    margin: 0 0 32px;
    color: var(--auth-muted);
    line-height: 1.6;
}

.auth-shell  .field {
    margin-bottom: 10px;
}

.auth-shell  label {
    display: block;
    margin-bottom: 4px;
    color: var(--auth-text);
    font-weight: 500;
}

.auth-shell  input[type="text"],
.auth-shell  input[type="email"],
.auth-shell  input[type="password"],
.auth-shell  input[type="tel"] {
    width: 100%;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background: var(--auth-card-bg);
    color: var(--auth-text);
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.auth-shell  input:focus {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}

.auth-shell  .button-primary {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--mud-palette-primary);
    color: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background .2s, opacity .2s;
}

    .auth-shell  .button-primary:hover {
        background: var(--mud-palette-primary-darken);
    }

    .auth-shell  .button-primary:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.auth-shell  .text-center {
    text-align: center;
}

.auth-shell  .mt-8 {
    margin-top: 32px;
}

.auth-shell  .mud-input-error-text {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--mud-palette-error);
}

.busy-mode {
    cursor: wait;
}

.auth-shell  .auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    color: var(--auth-muted);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
}

    .auth-shell  .auth-separator::before,
    .auth-shell  .auth-separator::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--auth-line);
    }

    .auth-shell  .auth-separator:not(:empty)::before {
        margin-right: 1.5em;
    }

    .auth-shell  .auth-separator:not(:empty)::after {
        margin-left: 1.5em;
    }

.auth-shell  .social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 900px) {
    .auth-shell  .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-shell  .auth-hero {
        display: none;
    }

    .auth-shell  .auth-form {
        padding: 24px 18px;
    }
}

.auth-shell  .password-field-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.auth-shell  .password-toggle-btn {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 30px !important;
    width: 30px !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--auth-muted) !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

    .auth-shell  .password-toggle-btn:hover {
        background: rgba(126, 111, 255, 0.08) !important;
        color: var(--mud-palette-primary) !important;
    }

.auth-shell  .password-field-wrapper input {
    padding-right: 36px !important;
}

.auth-shell  .password-mud-input .mud-input-outlined-border {
    border-radius: 8px !important;
}

.auth-shell  .password-mud-input .mud-input-slot {
    height: 38px !important;
    padding: 0 8px !important;
}

.auth-shell  .password-mud-input.mud-input-control {
    margin-top: 0 !important;
}
