:root {
    --mt-primary: #3b63ff;
    --mt-primary-dark: #2147c7;
    --mt-accent: #0dd1b6;
    --mt-soft: #f6f8ff;
    --mt-muted: #76809b;
    --mt-danger: #ef4444;
    --mt-success: #0fa370;
    --mt-radius-xl: 48px;
    --mt-radius-md: 16px;
    --mt-shadow-soft: 0 60px 120px rgba(6, 11, 35, 0.35);
    --mt-transition: 200ms ease;
}

body.mytheta-auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #041234, #071f50 55%, #0a2c70);
    color: #fff;
    overflow: hidden;
}

.mytheta-auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.mytheta-auth-visual {
    padding: 56px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
        background: #e5f8ff;
    position: relative;
}

.mytheta-visual-brand {
    position: absolute;
    top: 40px;
    left: 54px;
    max-width: 180px;
}

.mytheta-visual-brand img {
    width: 100%;
    height: auto;
    display: block;
}

.mytheta-visual-lottie {
    width: min(660px, 100%);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mytheta-auth-panel {
    padding: 30px 72px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0f1424;
    height: 100vh;
    overflow: hidden;
}

.mytheta-auth-panel::-webkit-scrollbar {
    width: 6px;
}

.mytheta-auth-panel::-webkit-scrollbar-thumb {
    background: rgba(47, 111, 237, 0.35);
    border-radius: 999px;
}

.mytheta-auth-panel > * {
    width: 100%;
    max-width: 460px;
}

.mytheta-mobile-brand {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 32px;
}

.mytheta-mobile-brand span {
    width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mytheta-mobile-brand span img {
    width: 100%;
    height: auto;
}

.mytheta-mobile-brand p {
    margin: 7px 0px 0px;
    color: var(--mt-muted);
    font-size: 0.95rem;
}

.mytheta-auth-tabs {
    display: inline-flex;
    padding: 0px;
    margin-bottom: 32px;
    gap: 8px;
    backdrop-filter: blur(6px);
}

.mytheta-auth-tab {
    border: none;
    padding: 10px 26px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #8d8d8d;
    background: #eeeeee99;
    cursor: pointer;
    transition: all var(--mt-transition);
    width: 50%;
    box-shadow: none;
}

.mytheta-auth-tab.is-active {
    background: #00abfe;
    color: #fff;
    position: relative;
}

.mytheta-auth-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #00abfe;
}

.mytheta-auth-panel h2 {
    margin: 0;
    font-size: 1.5rem;
}

.mytheta-auth-subtitle {
    margin: 8px 0 32px;
    color: var(--mt-muted);
}

.mytheta-auth-notice {
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size:12px;
}

.mytheta-auth-notice.success {
    background: rgba(15, 163, 112, 0.15);
    color: var(--mt-success);
    border: 1px solid rgba(15, 163, 112, 0.25);
}

.mytheta-auth-notice.error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--mt-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.mytheta-auth-form {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.mytheta-auth-form[data-view="register"] {
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-bottom: 40px;
    padding-right: 6px;
}

.mytheta-auth-form.is-active {
    display: flex;
}

.mytheta-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mytheta-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #252d42;
}

.mytheta-input-control {
    position: relative;
}

.mytheta-input-control input {
    width: 97%;
    border-radius: 5px;
    border: 1px solid #e1e6ef;
    padding: 16px 0px 16px 10px;
    font-size: 1rem;
    transition: border-color var(--mt-transition), box-shadow var(--mt-transition);
    background: #fafdff;
}

.mytheta-input-control input:focus {
    border-color: var(--mt-primary);
    box-shadow: 0 0 0 4px rgba(59, 99, 255, 0.18);
    outline: none;
    background: #fff;
}

.mytheta-password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mytheta-password-toggle svg {
    width: 26px;
    height: 26px;
    padding: 6px;
    border-radius: 12px;
    border: 0px solid #dbe2f6;
    transition: border-color var(--mt-transition), box-shadow var(--mt-transition);
    stroke: #96a0c6;
}

.mytheta-password-toggle:hover svg {
    border-color: var(--mt-primary);
    box-shadow: 0 10px 20px rgba(59, 99, 255, 0.15);
    stroke: var(--mt-primary);
}

.mytheta-password-toggle[data-state="visible"] svg .mytheta-eye-slash {
    opacity: 0;
}

.mytheta-password-toggle[data-state="hidden"] svg .mytheta-eye-slash {
    opacity: 1;
}

.mytheta-form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mytheta-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.mytheta-remember input {
    accent-color: var(--mt-primary);
}

.mytheta-link {
    color: var(--mt-primary-dark);
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

.mytheta-primary-btn {
    border: none;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #00acfc;
    cursor: pointer;
    position: relative;
    transition: transform var(--mt-transition), box-shadow var(--mt-transition);
    width: 100%;
}

.mytheta-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 40px rgba(59, 99, 255, 0.3);
}

.mytheta-primary-btn.is-loading {
    color: transparent;
}

.mytheta-primary-btn.is-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.mytheta-switch-view {
    margin-top: 12px;
    font-size: 0.90rem;
    color: var(--mt-muted);
}

.mytheta-switch-view button {
    font-weight: 500;
    margin-left: 6px;
}

.mytheta-divider {
    margin: 18px 0 8px;
    height: 1px;
    background: #e5e9f2;
}

@media (max-width: 1080px) {
    body.mytheta-auth-body {
        overflow: auto;
        background: #f3f5fb;
    }

    .mytheta-auth-wrapper {
        grid-template-columns: 1fr;
    }

    .mytheta-auth-visual {
        display: none;
    }

    .mytheta-auth-panel {
        height: auto;
        max-height: none;
        box-shadow: none;
        padding: 48px 32px 64px;
        overflow: visible;
    }

    .mytheta-mobile-brand {
        display: flex;
    }

}

@media (max-width: 720px) {
    .mytheta-auth-panel {
        padding: 40px 24px 56px;
    }

    .mytheta-auth-tabs {
        justify-content: center;
        align-self: center;
        width: 100%;
    }

    .mytheta-auth-panel h2,
    .mytheta-auth-subtitle {
        text-align: center;
    }

    .mytheta-auth-form[data-view="register"] {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
.mytheta-auth-tab {
    width: 48% !important;
}
}

@media (max-width: 540px) {
    .mytheta-auth-panel {
        padding: 36px 20px 56px;
    }

    .mytheta-auth-tabs {
        flex-wrap: wrap;
    }
}
