/* Auth screens: undo the global red button rule and keep fields readable. */
button.auth-quiet,
button.auth-tab,
button.auth-eye,
button.auth-text {
    background: transparent;
    background-image: none;
    color: inherit;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

button.auth-quiet:hover,
button.auth-tab:hover,
button.auth-eye:hover,
button.auth-text:hover {
    transform: none;
    opacity: 1;
}

.auth-tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 1.35rem;
    background: #f3f4f6;
    border-radius: 14px;
}

.dark .auth-tabs {
    background: #242424;
}

.auth-card button.auth-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    color: #6b7280;
    cursor: pointer;
}

.auth-card button.auth-tab.active {
    background: #fff;
    background-image: none;
    color: #b91c1c;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dark .auth-card button.auth-tab {
    color: #d1d5db;
}

.dark .auth-card button.auth-tab.active {
    background: #3a3a3a;
    color: #fca5a5;
}

.auth-card button.auth-eye {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #9ca3af;
    cursor: pointer;
}

.auth-card button.auth-eye:hover {
    color: #dc2626;
}

.auth-card button.auth-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}

.auth-card button.auth-text:hover {
    color: #b91c1c;
}

.auth-card .auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .auth-input.with-icon {
    padding-inline-start: 2.75rem;
}

.auth-card .auth-input.with-eye {
    padding-inline-end: 2.75rem;
}

.auth-card .auth-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.dark .auth-card .auth-input {
    background: #222;
    border-color: #505050;
    color: #fff;
}

.auth-card .auth-input:-webkit-autofill,
.auth-card .auth-input:-webkit-autofill:hover,
.auth-card .auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111827;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out;
}

.dark .auth-card .auth-input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #222 inset;
}

.auth-field-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    pointer-events: none;
}

.auth-card button.auth-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.35rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(to left, #dc2626, #b91c1c);
    background-image: linear-gradient(to left, #dc2626, #b91c1c);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.18);
}

.auth-card button.auth-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.auth-card button.auth-primary:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

button.auth-phone {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem;
    border-radius: 14px;
    border: 1.5px solid rgba(5, 150, 105, 0.35);
    background: #ecfdf5;
    background-image: none;
    color: #111827;
    text-align: start;
    box-shadow: none;
    cursor: pointer;
}

button.auth-phone:hover {
    background: #d1fae5;
    background-image: none;
    transform: none;
    opacity: 1;
}

.dark button.auth-phone {
    background: #064e3b;
    background-image: none;
    color: #ecfdf5;
    border-color: rgba(52, 211, 153, 0.4);
}
