@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&family=KoHo:ital,wght@0,500;0,600;1,500;1,600&display=swap');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


/* Center the login form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

/* Style the login card */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
/* Center text inside the card */
.text-center {
    text-align: center;
}

/* Apply background color to MudCardContent */
.login-card-content {
    background-color: #ffffff; /* White background */
    padding: 20px;
    border-radius: 8px;
}

/* Full-width button */
.full-width-btn {
    width: 100%;
}

/* Center the logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
.login-logo {
    max-width: 70px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.demo-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 560px) 1fr;
    background-color: #ffffff;
}
.demo-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: #ffffff;
}
.demo-login-card {
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.demo-login-layout .mud-elevation-1 {
    box-shadow: none;
}
.demo-login-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #6ec1ff 0%, #2f7be5 100%);
}
.demo-login-button:hover {
    background-image: linear-gradient(135deg, #7fcaff 0%, #3b86ee 100%);
}
.demo-login-button--full {
    width: 100%;
}
.demo-login-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 900px) {
    .demo-login-layout {
        grid-template-columns: 1fr;
    }
    .demo-login-image {
        min-height: 240px;
    }
}

.tesla-auth-layout {
    font-family: 'KoHo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #8F8F8F;
}
.tesla-auth-layout .mud-typography-h6,
.tesla-auth-layout .mud-typography-h5,
.tesla-auth-layout .mud-typography-h4,
.tesla-auth-layout .mud-typography-subtitle1 {
    font-weight: 600;
}
.tesla-auth-layout .mud-typography-body1,
.tesla-auth-layout .mud-typography-body2,
.tesla-auth-layout .mud-input,
.tesla-auth-layout .mud-input-label,
.tesla-auth-layout .mud-link {
    font-weight: 500;
    color: #8F8F8F;
}
.tesla-auth-layout .mud-checkbox.mud-checked .mud-typography,
.tesla-auth-layout .mud-radio.mud-checked .mud-typography,
.tesla-auth-layout .mud-switch.mud-checked .mud-typography {
    font-style: italic;
}
.tesla-auth-layout .mud-selected,
.tesla-auth-layout .mud-selected .mud-typography {
    font-style: italic;
}

.tesla-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr;
    background-color: #ffffff;
}
.tesla-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: #ffffff;
}
.tesla-login-card {
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.tesla-login-layout .mud-elevation-1 {
    box-shadow: none;
}
.tesla-login-button {
    color: #ffffff !important;
    background-color: #E26161 !important;
    border-color: #E26161 !important;
}
.tesla-login-button:hover {
    background-color: #D85858;
}
.tesla-login-button--full {
    width: 100%;
}
.tesla-login-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.tesla-login-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(226, 97, 97, 0.18), rgba(255, 255, 255, 0));
}
@media (max-width: 900px) {
    .tesla-login-layout {
        grid-template-columns: 1fr;
    }
    .tesla-login-image {
        min-height: 240px;
    }
}

.generic-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr;
    background-color: #ffffff;
}
.generic-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}
.generic-login-card {
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.generic-login-layout .mud-elevation-1 {
    box-shadow: none;
}
.generic-login-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #3fa9f5 0%, #105396 100%);
}
.generic-login-button:hover {
    background-image: linear-gradient(135deg, #59b7fb 0%, #1c65b4 100%);
}
.generic-login-button--full {
    width: 100%;
}
.generic-login-link {
    color: #1976d2 !important;
    font-weight: 700;
    text-decoration: none;
}
.generic-login-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.generic-login-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 83, 150, 0.12), rgba(255, 255, 255, 0));
}

.platform-auth-layout {
    font-family: 'Comfortaa', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.platform-login-layout {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(420px, 0.95fr);
    background: #ffffff;
}
.platform-login-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 55% 35%, rgba(0, 225, 255, 0.18), transparent 24%),
        radial-gradient(circle at 25% 75%, rgba(0, 162, 252, 0.12), transparent 28%),
        linear-gradient(180deg, #223042 0%, #172231 100%);
    color: #f5f8ff;
}
.platform-login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%, rgba(0, 225, 255, 0.06));
    pointer-events: none;
}
.platform-login-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 72px 64px 48px;
}
.platform-login-badge {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3db7ff 0%, #22c6e8 55%, #00a2fc 100%);
    box-shadow: 0 18px 40px rgba(0, 162, 252, 0.28);
}
.platform-login-badge__icon {
    font-size: 46px;
    color: #ffffff;
}
.platform-login-title {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-size: 2.25rem;
    line-height: 2.5rem;
}
.platform-login-subtitle {
    max-width: 520px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(230, 238, 250, 0.72);
}
.platform-login-features {
    display: grid;
    gap: 20px;
    margin-top: 8px;
    width: min(100%, 440px);
}
.platform-login-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(240, 246, 255, 0.82);
    font-size: 1rem;
    font-weight: 600;
}
.platform-login-feature__icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4fc5ff 0%, #2198ff 100%);
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0, 162, 252, 0.24);
}
.platform-login-powered {
    margin-top: auto;
    color: rgba(202, 214, 232, 0.38);
    font-size: 0.95rem;
}
.platform-login-form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 32px;
    background:
        radial-gradient(circle at top left, rgba(0, 162, 252, 0.06), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.platform-login-form-shell {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.platform-login-form-shell--signup {
    max-width: 720px;
}
.platform-login-status {
    text-align: center;
}
.platform-login-status__ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, #eef4ff 38%, #f7f9fd 39%),
        conic-gradient(from 0deg, #3f7ff6 0 82deg, #edf2fb 82deg 360deg);
    box-shadow: inset 0 0 0 6px #f7f9fd;
}
.platform-login-status__icon {
    font-size: 38px;
    color: #397af0;
}
.platform-login-status__title {
    margin: 0;
    color: #0e2a56;
    font-weight: 700;
}
.platform-login-status__subtitle {
    margin-top: 8px;
    color: #5f7ca8;
    font-size: 1rem;
}
.platform-login-card {
    width: 100%;
    max-width: 420px;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
}
.platform-login-card-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    padding: 0;
}
.platform-login-card .mud-card-actions {
    padding: 20px 0 0;
}
.platform-login-card .mud-paper,
.platform-login-card .mud-card,
.platform-login-card.mud-paper {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.auth-signup-card-wide {
    width: 100%;
    max-width: 100% !important;
}
.platform-login-card--surface,
.platform-login-card--surface.mud-paper,
.platform-login-card--surface .mud-paper,
.platform-login-card--surface .mud-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 48px rgba(17, 42, 86, 0.12) !important;
}
.platform-login-card-content--surface {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 28px !important;
}
.platform-login-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #00e1ff 0%, #00a2fc 100%);
    border: none !important;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(0, 162, 252, 0.28);
}
.platform-login-button:hover {
    background-image: linear-gradient(135deg, #2ce8ff 0%, #15aeff 100%);
}
.platform-login-button--full {
    width: 100%;
}
.platform-login-link {
    color: #00a2fc !important;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .platform-login-layout {
        grid-template-columns: 1fr;
        min-height: 100vh;
        min-height: 100svh;
    }
    .platform-login-hero__inner {
        padding: 48px 32px 36px;
    }
    .platform-login-form-pane {
        align-items: flex-start;
        padding: 32px 20px 40px;
    }
}

@media (max-width: 900px) {
    .generic-login-layout {
        grid-template-columns: 1fr;
    }
    .generic-login-image {
        min-height: 240px;
    }
    .background-wrapper,
    .auth-background-wrapper {
        align-items: flex-start;
        justify-content: flex-start;
    }
    .auth-signup-shell {
        margin: 0 auto;
    }
}

.signup-container {
    background-image: url('/img//BackAndesTool4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* Full screen */
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-wrapper {
    background-image: url('/img/BackgroundCosco3.png'); /* o una URL externa */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* o un color de fondo acorde */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.background-wrapper {
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.auth-background-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-background-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px 16px 32px;
}

.auth-signup-card-surface,
.auth-signup-card-surface.mud-paper {
    background-color: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: none !important;
}

.auth-signup-card-content-surface {
    background-color: #ffffff !important;
    border-radius: 20px !important;
    padding: 28px !important;
}

.auth-signup-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(15, 39, 69, 0.22);
    padding: 12px;
}

@media (max-width: 640px) {
    .auth-background-content {
        padding: 16px 12px 24px;
    }

    .auth-signup-shell {
        padding: 8px;
        border-radius: 18px;
    }

    .auth-signup-card-content-surface,
    .platform-login-card-content--surface,
    .signup-card-content {
        padding: 20px !important;
    }
}

.auth-signup-two-column-grid {
    row-gap: 10px;
}

.auth-signup-two-column-grid .mud-grid-item {
    padding-bottom: 8px;
}

.demo-login-image,
.tesla-login-image,
.generic-login-image {
    position: relative;
    overflow: hidden;
}

.auth-panel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-loading-image {
    width: 100px;
    height: auto;
    display: block;
    margin: auto;
}

.auth-back-button {
    margin-bottom: 10px;
}

.auth-text-center {
    text-align: center;
}

.auth-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.auth-recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    align-items: flex-start;
    min-height: auto;
    overflow: visible;
}

.auth-recaptcha-container--wide {
    justify-content: flex-start;
    margin: 10px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(16, 83, 150, 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
}

.auth-recaptcha-grid-item {
    overflow: visible;
}

.auth-switch-item {
    display: flex;
    align-items: center;
}

.auth-form-full {
    width: 100%;
}

.auth-form-inherit {
    width: inherit;
}

.auth-inline-link {
    cursor: pointer;
    text-decoration: underline;
}

.auth-standard-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #3fa9f5 0%, #105396 100%);
    border: none !important;
}

.auth-standard-button:hover {
    background-image: linear-gradient(135deg, #59b7fb 0%, #1c65b4 100%);
}

.auth-spacing-top-sm {
    margin-top: 8px;
}

.auth-spacing-top-lg {
    margin-top: 40px;
}

.auth-dialog-scroll {
    max-height: 400px;
    overflow: auto;
}

.tesla-muted-text {
    color: #8f8f8f;
}

.tesla-caption-block {
    display: block;
    color: #7b7b7b;
}

.tesla-caption-example {
    display: block;
    color: #a05b5b;
}

.tesla-caption-progress {
    display: block;
    color: #8f8f8f;
}

.tesla-text-button {
    color: #e26161 !important;
    font-weight: 600;
}

.tesla-login-link {
    color: #e26161 !important;
    font-weight: 700;
    text-decoration: none;
}

.customer-code-field input {
    font-size: 1.35rem !important;
    letter-spacing: 0.35rem;
    text-align: center;
    font-weight: 600;
}

.code-preview-field input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.access-denied-paper {
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 55%, #fff3f3 100%);
}

.access-denied-fade-in {
    animation: access-denied-fade-in 0.35s ease-out;
}

@keyframes access-denied-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-header-title {
    font-weight: 700;
    color: #223042;
}

.admin-header-subtitle {
    color: #5f7ca8;
}

.admin-avatar-shell {
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.admin-log-panel {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row a,
.top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row a:hover,
.top-row .btn-link:hover {
    text-decoration: underline;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.5);
}

.navbar-brand {
    font-size: 1.1rem;
}

.bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
}

.nav-item a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

.client-admin-grid {
    align-items: stretch;
}

.client-admin-form,
.client-admin-table {
    height: 100%;
}

.client-search-field {
    min-width: 280px;
}

.client-security-hint {
    margin-top: 0.25rem;
}

.client-secret-field input {
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 0.02em;
}

@media (max-width: 960px) {
    .client-search-field {
        min-width: 100%;
    }
}

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row a,
    .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.plain-admin-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    color: #1f2a37;
}

.plain-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plain-admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 1.5rem;
}

.plain-admin-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(20, 39, 69, 0.08);
    padding: 1.5rem;
}

.plain-admin-form {
    display: grid;
    gap: 0.9rem;
}

.plain-admin-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: #43536b;
}

.plain-admin-form input {
    width: 100%;
    border: 1px solid #c8d4e6;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    color: #1f2a37;
    background: #fff;
}

.plain-admin-checkbox {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 0.55rem;
}

.plain-admin-checkbox input {
    width: auto;
}

.plain-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.plain-admin-button,
.plain-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid #d0dae8;
    text-decoration: none;
    font-weight: 600;
    background: #1b4ee0;
    color: #fff;
    cursor: pointer;
}

.plain-admin-button--secondary,
.plain-admin-link {
    background: #fff;
    color: #1f2a37;
}

.plain-admin-button--accent {
    background: #0f766e;
    color: #fff;
}

.plain-admin-alert {
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.plain-admin-alert--success {
    background: #eefbf3;
    border-color: #b8e2c4;
    color: #18633c;
}

.plain-admin-alert--error {
    background: #fff2f2;
    border-color: #f0b8b8;
    color: #8a1d1d;
}

.plain-admin-alert--warning {
    background: #fff8e8;
    border-color: #efd9a1;
    color: #7a5c00;
}

.plain-admin-secret {
    margin: 0.65rem 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #16202f;
    color: #f8fbff;
    font-family: "Consolas", "Courier New", monospace;
    overflow-wrap: anywhere;
}

.plain-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.plain-admin-table th,
.plain-admin-table td {
    text-align: left;
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid #e6edf7;
    vertical-align: top;
}

.plain-admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recovery-platform-title {
    font-size: 2.25rem !important /* 36px */;
    line-height: 2.5rem !important /* 40px */;
    font-weight: 700 !important;
    margin-bottom: 1rem !important /* 16px */;
    letter-spacing: -0.025em !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11' !important;
}

.recovery-platform-subtitle {
    font-size: 1.125rem /* 18px */ !important;
    line-height: 1.75rem /* 28px */ !important;
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1)) /* #94a3b8 */ !important;
    margin-bottom: 2.5rem /* 40px */ !important;
    line-height: 1.625 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11' !important;
}

.recovery-platform-paragraph {
    font-size: 1rem /* 16px */ !important;
    font-weight: 500 !important;
    line-height: 1.625 !important;
    --tw-text-opacity: 1 !important;
    color: rgb(203 213 225 / var(--tw-text-opacity, 1)) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11' !important;
}

@media (max-width: 960px) {
    .plain-admin-shell {
        padding: 1rem;
    }

    .plain-admin-header,
    .plain-admin-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
}

/* Tesla customer login redesign */
.tesla-auth-layout,
.tesla-auth-layout *,
.tesla-auth-layout *::before,
.tesla-auth-layout *::after {
    box-sizing: border-box;
}

.tesla-auth-layout {
    --color-bg: #050607;
    --color-surface: rgba(10, 12, 16, 0.74);
    --color-surface-strong: rgba(9, 11, 15, 0.9);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-strong: rgba(255, 255, 255, 0.18);
    --color-text: #f5f5f7;
    --color-muted: #a6a8ad;
    --color-red: #e50914;
    --color-red-strong: #c90008;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-card: 0 34px 90px rgba(0, 0, 0, 0.58), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    color: var(--color-text);
    font-family: 'KoHo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--color-bg);
}

.tesla-login-layout.tesla-auth-layout {
    display: grid;
    grid-template-columns: minmax(440px, 30vw) minmax(0, 1fr);
    overflow-x: hidden;
    overflow-y: hidden;
    background: var(--color-bg);
}

.tesla-auth-panel {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    overflow-y: auto;
    padding: 42px 36px 28px;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.94) 76%, rgba(5, 6, 7, 0.72) 100%),
        radial-gradient(circle at 74% 12%, rgba(229, 9, 20, 0.13), transparent 25%);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.tesla-auth-panel__inner {
    width: min(100%, 500px);
    min-height: calc(100vh - 70px);
    min-height: calc(100svh - 70px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.tesla-auth-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 34px;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1;
}

.tesla-auth-brand__word {
    color: #ff1018;
    font-size: 1.3rem;
}

.tesla-auth-brand__divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.26);
}

.tesla-auth-brand__portal {
    color: rgba(245, 245, 247, 0.82);
    font-size: 1rem;
    font-weight: 600;
}

.tesla-auth-card {
    width: 100%;
    margin-top: 30px;
    padding: 34px 32px 30px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 42%),
        var(--color-surface);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(22px);
    transform: perspective(1100px) rotateY(-1.6deg) translateZ(0);
    transform-origin: center right;
}

.tesla-auth-card__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(229, 9, 20, 0.5);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.18), rgba(9, 11, 15, 0.72) 58%);
    box-shadow: 0 0 28px rgba(229, 9, 20, 0.28), inset 0 0 0 9px rgba(255, 255, 255, 0.03);
}

.tesla-auth-card__icon-svg {
    color: #f3f4f6;
    font-size: 30px;
}

.tesla-auth-heading {
    text-align: center;
    margin-bottom: 28px;
}

.tesla-auth-heading h1 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.55rem;
    line-height: 1.18;
    font-weight: 700;
}

.tesla-auth-heading p {
    max-width: 340px;
    margin: 12px auto 0;
    color: var(--color-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.tesla-auth-form {
    display: grid;
    gap: 18px;
}

.tesla-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.42fr);
    gap: 16px;
}

.tesla-auth-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tesla-auth-group label {
    color: rgba(245, 245, 247, 0.88);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.tesla-auth-field {
    position: relative;
    min-width: 0;
}

.tesla-auth-input {
    width: 100%;
    min-height: 50px;
    padding: 0 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(5, 7, 10, 0.62);
    color: var(--color-text);
    font: inherit;
    font-size: 0.98rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.tesla-auth-input::placeholder {
    color: rgba(166, 168, 173, 0.75);
}

.tesla-auth-input:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(8, 10, 14, 0.72);
}

.tesla-auth-input:focus {
    border-color: rgba(229, 9, 20, 0.74);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tesla-auth-input--invalid {
    border-color: rgba(255, 86, 86, 0.78);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.14);
}

.tesla-auth-field--compact .tesla-auth-input {
    padding-left: 16px;
    padding-right: 42px;
}

.tesla-auth-field__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 1;
    color: rgba(211, 213, 218, 0.72);
    font-size: 20px;
    pointer-events: none;
    transform: translateY(-50%);
}

.tesla-auth-field__icon--end {
    left: auto;
    right: 14px;
}

.tesla-auth-field__action {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 247, 0.8);
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.tesla-auth-field__action:hover,
.tesla-auth-field__action:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: 2px solid rgba(229, 9, 20, 0.45);
    outline-offset: 2px;
}

.tesla-auth-error,
.tesla-auth-help {
    min-height: 18px;
    margin: -2px 0 0;
    font-size: 0.82rem;
    line-height: 1.3;
}

.tesla-auth-error {
    color: #ff8f8f;
}

.tesla-auth-help {
    color: rgba(166, 168, 173, 0.86);
    text-align: right;
}

.tesla-auth-button {
    width: 100%;
    min-height: 48px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.tesla-auth-button:hover {
    transform: translateY(-1px);
}

.tesla-auth-button:focus-visible {
    outline: 3px solid rgba(229, 9, 20, 0.34);
    outline-offset: 3px;
}

.tesla-auth-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.tesla-auth-button--primary {
    margin-top: 6px;
    background: linear-gradient(90deg, var(--color-red-strong), var(--color-red));
    box-shadow: 0 16px 34px rgba(229, 9, 20, 0.28);
}

.tesla-auth-button--primary:hover {
    background: linear-gradient(90deg, #d9000a, #f01924);
    box-shadow: 0 18px 38px rgba(229, 9, 20, 0.34);
}

.tesla-auth-button--secondary {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(7, 9, 12, 0.56);
}

.tesla-auth-button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.055);
    color: var(--color-text);
}

.tesla-auth-button__icon {
    font-size: 21px;
    flex: 0 0 auto;
}

.tesla-auth-spinner {
    width: 20px;
    height: 20px;
}

.tesla-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 26px 0;
    color: rgba(166, 168, 173, 0.84);
    font-size: 0.9rem;
}

.tesla-auth-divider span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.tesla-auth-divider em {
    font-style: normal;
}

.tesla-auth-summary {
    display: grid;
    gap: 8px;
    margin: -10px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(245, 245, 247, 0.86);
    background: rgba(255, 255, 255, 0.04);
    overflow-wrap: anywhere;
}

.tesla-auth-link-button,
.tesla-auth-text-link {
    margin: 14px auto 0;
    border: 0;
    display: block;
    width: fit-content;
    color: #ff6f77;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.tesla-auth-link-button:hover,
.tesla-auth-text-link:hover {
    color: #ff9298;
    text-decoration: underline;
}

.tesla-auth-alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.4;
}

.tesla-auth-alert--error {
    border: 1px solid rgba(255, 86, 86, 0.28);
    color: #ffd5d5;
    background: rgba(229, 9, 20, 0.14);
}

.tesla-auth-alert--success {
    border: 1px solid rgba(110, 231, 183, 0.24);
    color: #d6ffeb;
    background: rgba(6, 95, 70, 0.22);
}

.tesla-security-info {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tesla-security-info__icon {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245, 245, 247, 0.88);
    background: rgba(255, 255, 255, 0.035);
}

.tesla-security-info strong {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.3;
}

.tesla-security-info p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.tesla-auth-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

.tesla-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #07090c;
}

.tesla-hero__media {
    position: absolute;
    inset: 0;
    background-image: url('/img/tesla/login-poster.png');
    background-size: cover;
    background-position: center;
}

.tesla-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tesla-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, 0.2) 0%, rgba(5, 6, 7, 0.02) 28%, rgba(5, 6, 7, 0.22) 100%),
        linear-gradient(180deg, rgba(2, 3, 5, 0.18) 0%, rgba(2, 3, 5, 0.08) 48%, rgba(2, 3, 5, 0.56) 100%);
    pointer-events: none;
}

.tesla-feature-bar {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    background: rgba(9, 11, 15, 0.78);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
}

.tesla-feature-bar__item {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 24px 26px;
}

.tesla-feature-bar__item + .tesla-feature-bar__item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.tesla-feature-bar__icon {
    color: rgba(245, 245, 247, 0.9);
    font-size: 34px;
}

.tesla-feature-bar strong {
    display: block;
    color: var(--color-text);
    font-size: 0.98rem;
    line-height: 1.25;
}

.tesla-feature-bar span {
    display: block;
    margin-top: 7px;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Tesla password recovery */
.tesla-recovery-layout,
.tesla-recovery-layout *,
.tesla-recovery-layout *::before,
.tesla-recovery-layout *::after {
    box-sizing: border-box;
}

.tesla-recovery-layout {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    padding: 32px 28px 44px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'KoHo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.tesla-recovery-bg,
.tesla-recovery-overlay {
    position: absolute;
    inset: 0;
}

.tesla-recovery-bg {
    background-image: url('/img/tesla/login-poster.png');
    background-size: cover;
    background-position: center;
}

.tesla-recovery-bg__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tesla-recovery-overlay {
    z-index: 1;
    background:
        radial-gradient(circle at 76% 44%, rgba(229, 9, 20, 0.12), transparent 31%),
        linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.68) 38%, rgba(5, 6, 7, 0.34) 72%, rgba(5, 6, 7, 0.54) 100%),
        linear-gradient(180deg, rgba(5, 6, 7, 0.22) 0%, rgba(5, 6, 7, 0.12) 42%, rgba(5, 6, 7, 0.78) 100%);
    pointer-events: none;
}

.tesla-recovery-card {
    position: relative;
    z-index: 2;
    width: min(430px, calc(100vw - 32px));
    min-height: 578px;
    padding: 54px 32px 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012) 44%),
        var(--color-surface-strong);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(22px);
}

.tesla-recovery-card--step-1 {
    min-height: 578px;
}

.tesla-recovery-back {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--color-text);
    background: transparent;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

.tesla-recovery-back:hover,
.tesla-recovery-back:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: 2px solid rgba(229, 9, 20, 0.42);
    outline-offset: 2px;
    transform: translateX(-1px);
}

.tesla-recovery-back .mud-icon-root {
    font-size: 25px;
}

.tesla-recovery-card__icon {
    position: relative;
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    border: 1px solid rgba(229, 9, 20, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.18), rgba(9, 11, 15, 0.72) 58%);
    box-shadow: 0 0 28px rgba(229, 9, 20, 0.28), inset 0 0 0 9px rgba(255, 255, 255, 0.03);
}

.tesla-recovery-card__icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-right: 2px solid var(--color-red);
    border-radius: 50%;
    transform: rotate(22deg);
}

.tesla-recovery-card__icon-svg {
    position: relative;
    z-index: 1;
    color: var(--color-text);
    font-size: 31px;
}

.tesla-recovery-card h1 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.tesla-recovery-title-accent {
    width: 38px;
    height: 2px;
    margin: 20px auto 20px;
    display: block;
    background: linear-gradient(90deg, var(--color-red-strong), var(--color-red));
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.36);
}

.tesla-recovery-copy {
    width: min(100%, 350px);
    margin: 0 auto 34px;
    color: var(--color-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.tesla-recovery-field {
    display: grid;
    gap: 9px;
    width: 100%;
    margin: 0 auto 22px;
    color: rgba(245, 245, 247, 0.88);
    font-size: 0.95rem;
    font-weight: 600;
}

.tesla-recovery-field span {
    line-height: 1.2;
}

.tesla-recovery-input-shell {
    position: relative;
    min-width: 0;
}

.tesla-recovery-field input {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    padding: 0 18px 0 48px;
    color: var(--color-text);
    background: rgba(5, 7, 10, 0.62);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 400;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.tesla-recovery-field input::placeholder {
    color: rgba(166, 168, 173, 0.75);
}

.tesla-recovery-field input:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(8, 10, 14, 0.72);
}

.tesla-recovery-field input:focus {
    border-color: rgba(229, 9, 20, 0.74);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tesla-recovery-field__icon {
    position: absolute;
    left: 17px;
    top: 50%;
    z-index: 1;
    color: rgba(211, 213, 218, 0.72);
    font-size: 20px;
    pointer-events: none;
    transform: translateY(-50%);
}

.tesla-recovery-recaptcha {
    position: relative;
    width: 100%;
    min-height: 90px;
    margin: 3px auto 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(5, 7, 10, 0.62);
    overflow: hidden;
}

.tesla-recovery-recaptcha .g-recaptcha {
    position: relative;
    z-index: 2;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tesla-recovery-recaptcha .g-recaptcha[data-widget-id] + .tesla-recovery-recaptcha__fallback {
    display: none;
}

.tesla-recovery-recaptcha__fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    color: var(--color-text);
    font-size: 0.95rem;
}

.tesla-recovery-recaptcha__check {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(245, 245, 247, 0.82);
    background: rgba(255, 255, 255, 0.02);
}

.tesla-recovery-recaptcha__brand {
    color: var(--color-muted);
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: center;
}

.tesla-recovery-button {
    width: 100%;
    min-height: 52px;
    margin: 0 auto;
    border: 1px solid transparent;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    color: var(--color-text);
    background: linear-gradient(90deg, var(--color-red-strong), var(--color-red));
    box-shadow: 0 16px 34px rgba(229, 9, 20, 0.28);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.tesla-recovery-button:hover,
.tesla-recovery-button:focus-visible {
    filter: brightness(1.04);
    box-shadow: 0 18px 38px rgba(229, 9, 20, 0.34);
    outline: 3px solid rgba(229, 9, 20, 0.34);
    outline-offset: 3px;
    transform: translateY(-1px);
}

.tesla-recovery-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.24);
    opacity: 0.68;
    transform: none;
}

.tesla-recovery-button--ghost {
    margin-top: 0;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
    background: rgba(7, 9, 12, 0.56);
    box-shadow: none;
}

.tesla-recovery-actions {
    display: grid;
    gap: 12px;
}

.tesla-recovery-password-toggle {
    width: fit-content;
    margin: -24px auto 22px;
    border: 0;
    display: block;
    color: #ff6f77;
    background: transparent;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}

.tesla-recovery-message {
    width: 100%;
    margin: 16px auto 0;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.tesla-recovery-message--error {
    border: 1px solid rgba(255, 86, 86, 0.28);
    color: #ffd5d5;
    background: rgba(229, 9, 20, 0.14);
}

.tesla-recovery-message--success {
    border: 1px solid rgba(110, 231, 183, 0.24);
    color: #d6ffeb;
    background: rgba(6, 95, 70, 0.22);
}

.tesla-recovery-footer {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100vw - 32px));
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.tesla-recovery-footer p {
    margin: 0;
}

.tesla-recovery-footer p + p {
    margin-top: 12px;
}

.tesla-recovery-footer a {
    margin-left: 8px;
    color: var(--color-red);
    font-weight: 700;
    text-decoration: none;
}

.tesla-recovery-footer a:hover,
.tesla-recovery-footer a:focus-visible {
    color: #ff6f77;
    text-decoration: underline;
    outline: none;
}

@media (max-width: 1199px) {
    .tesla-login-layout.tesla-auth-layout {
        grid-template-columns: minmax(380px, 42vw) minmax(0, 1fr);
    }

    .tesla-auth-panel {
        padding: 28px 24px 22px;
    }

    .tesla-auth-card {
        padding: 28px 24px 24px;
        transform: none;
    }

    .tesla-feature-bar {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .tesla-feature-bar__item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 18px 16px;
    }

    .tesla-feature-bar__icon {
        font-size: 28px;
    }

    .tesla-feature-bar strong {
        font-size: 0.88rem;
    }

    .tesla-feature-bar span {
        font-size: 0.82rem;
    }
}

@media (max-width: 767px) {
    .tesla-login-layout.tesla-auth-layout {
        display: block;
        min-height: 100vh;
        min-height: 100svh;
        overflow-y: auto;
        background:
            linear-gradient(180deg, rgba(5, 6, 7, 0.68) 0%, rgba(5, 6, 7, 0.94) 34%, rgba(5, 6, 7, 0.98) 100%),
            url('/img/tesla/login-poster.png') center top / cover no-repeat;
    }

    .tesla-auth-panel {
        min-height: auto;
        overflow: visible;
        padding: 24px 16px 18px;
        background: transparent;
        border-right: 0;
    }

    .tesla-auth-panel__inner {
        min-height: auto;
        width: 100%;
    }

    .tesla-auth-brand {
        justify-content: flex-start;
        gap: 12px;
    }

    .tesla-auth-brand__word {
        font-size: 1.1rem;
    }

    .tesla-auth-brand__portal {
        font-size: 0.86rem;
    }

    .tesla-auth-brand__divider {
        height: 24px;
    }

    .tesla-auth-card {
        margin-top: 24px;
        padding: 28px 20px 24px;
        border-radius: 14px;
        transform: none;
        backdrop-filter: blur(14px);
    }

    .tesla-auth-heading {
        margin-bottom: 22px;
    }

    .tesla-auth-heading h1 {
        font-size: 1.35rem;
    }

    .tesla-auth-heading p {
        font-size: 0.92rem;
    }

    .tesla-auth-grid {
        grid-template-columns: minmax(0, 1fr) minmax(92px, 0.36fr);
        gap: 12px;
    }

    .tesla-auth-input {
        min-height: 48px;
        padding-left: 42px;
        padding-right: 40px;
        font-size: 0.95rem;
    }

    .tesla-auth-field--compact .tesla-auth-input {
        padding-left: 14px;
        padding-right: 38px;
    }

    .tesla-auth-button {
        min-height: 48px;
        padding: 0 14px;
        font-size: 0.88rem;
    }

    .tesla-security-info {
        grid-template-columns: 44px 1fr;
        margin-top: 26px;
        padding-top: 24px;
    }

    .tesla-security-info__icon {
        width: 44px;
        height: 44px;
    }

    .tesla-hero {
        min-height: auto;
        overflow: visible;
        padding: 0 16px 24px;
        background: transparent;
    }

    .tesla-hero__media,
    .tesla-hero__overlay {
        display: none;
    }

    .tesla-feature-bar {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .tesla-feature-bar__item {
        padding: 18px;
    }

    .tesla-feature-bar__item + .tesla-feature-bar__item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tesla-recovery-layout {
        display: block;
        padding: 24px 16px 28px;
        background:
            linear-gradient(180deg, rgba(5, 6, 7, 0.72) 0%, rgba(5, 6, 7, 0.94) 36%, rgba(5, 6, 7, 0.98) 100%),
            url('/img/tesla/login-poster.png') center top / cover no-repeat;
    }

    .tesla-recovery-bg__video,
    .tesla-recovery-overlay {
        display: none;
    }

    .tesla-recovery-card {
        width: 100%;
        min-height: auto;
        padding: 46px 20px 28px;
        border-radius: 14px;
        backdrop-filter: blur(14px);
    }

    .tesla-recovery-card--step-1 {
        min-height: auto;
    }

    .tesla-recovery-back {
        top: 18px;
        left: 18px;
    }

    .tesla-recovery-card__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 18px;
    }

    .tesla-recovery-card h1 {
        font-size: 1.35rem;
    }

    .tesla-recovery-copy {
        margin-bottom: 24px;
        font-size: 0.92rem;
    }

    .tesla-recovery-field input,
    .tesla-recovery-button {
        min-height: 48px;
    }

    .tesla-recovery-recaptcha__fallback {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .tesla-recovery-recaptcha__brand {
        display: none;
    }

    .tesla-recovery-footer {
        width: 100%;
        margin-top: 22px;
        padding-top: 22px;
        font-size: 0.88rem;
    }
}

@media (max-width: 390px) {
    .tesla-auth-panel {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tesla-auth-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tesla-auth-brand {
        gap: 10px;
    }

    .tesla-auth-grid {
        grid-template-columns: 1fr;
    }

    .tesla-recovery-layout {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tesla-recovery-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tesla-recovery-recaptcha__fallback {
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tesla-auth-layout *,
    .tesla-auth-layout *::before,
    .tesla-auth-layout *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .tesla-auth-card,
    .tesla-auth-button:hover {
        transform: none;
    }

    .tesla-hero__video {
        display: none;
    }

    .tesla-recovery-bg__video {
        display: none;
    }
}


