:root {
    --ttt-primary: #4f46e5;
    --ttt-secondary: #0f172a;
    --ttt-surface: #f3f4f6;
    --ttt-text: #111827;
    --ttt-font: "Figtree", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.ttt-shell {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ttt-font);
    color: var(--ttt-text);
    background: color-mix(in srgb, var(--ttt-surface) 92%, white 8%);
}

.ttt-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
}

.ttt-locale-switch {
    width: min(100%, 30rem);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.ttt-locale-switch__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--ttt-text) 84%, white 16%);
}

.ttt-locale-switch__select {
    border: 1px solid #d5dae3;
    border-radius: 0.5rem;
    background: #fff;
    color: var(--ttt-text);
    font-size: 0.88rem;
    padding: 0.45rem 0.65rem;
}

.ttt-locale-switch__select:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ttt-primary) 25%, white 75%);
    outline-offset: 1px;
}

.ttt-auth__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ttt-auth__logo-mark {
    width: 140px;
    height: auto;
}

.ttt-auth__card {
    width: min(100%, 30rem);
    background: #fff;
    border: 1px solid #d5dae3;
    border-radius: 1rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
    padding: 1.5rem;
}

.ttt-app {
    min-height: 100vh;
    background: color-mix(in srgb, var(--ttt-surface) 88%, white 12%);
}

.ttt-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ttt-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ttt-form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--ttt-text) 84%, white 16%);
}

.ttt-form__input {
    width: 100%;
    border: 1px solid #d5dae3;
    border-radius: 0.5rem;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    line-height: 1.3;
    background-color: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ttt-form__input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--ttt-primary) 75%, black 25%);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ttt-primary) 30%, white 70%);
}

.ttt-form__check {
    margin-top: 0.5rem;
}

.ttt-form__check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.ttt-form__check-input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ttt-primary);
}

.ttt-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.ttt-form__actions--end {
    justify-content: flex-end;
}

.ttt-form__link {
    color: color-mix(in srgb, var(--ttt-primary) 45%, black 55%);
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: 0.5rem;
}

.ttt-form__link:hover {
    text-decoration: underline;
}

.ttt-form__link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ttt-primary) 28%, white 72%);
    outline-offset: 2px;
}

.ttt-form__link--button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.ttt-form__meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--ttt-text) 74%, white 26%);
}

.ttt-form__status {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid color-mix(in srgb, #15803d 30%, white 70%);
    color: #15803d;
    background: color-mix(in srgb, #15803d 10%, white 90%);
    font-size: 0.9rem;
}

.ttt-form__error-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.2rem;
}

.ttt-form__error-item {
    color: #c81e3a;
    font-size: 0.82rem;
}

.ttt-btn {
    border: 0;
    border-radius: 0.5rem;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.ttt-btn:hover {
    transform: translateY(-1px);
}

.ttt-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.24rem color-mix(in srgb, var(--ttt-primary) 34%, white 66%);
}

.ttt-btn--primary {
    color: #fff;
    background: var(--ttt-primary);
}

.ttt-btn--secondary {
    color: var(--ttt-text);
    background: #fff;
    border: 1px solid #d5dae3;
}
