/* Giriş, şifremi unuttum ve şifre oluşturma ekranlarının ortak düzeni.
   Vurgu rengi alan adının giriş rengidir (--auth-accent, _LoginLayout'ta verilir);
   buton rengi alan adı temasındaki .btn-single'dan gelir. */
.auth {
    --auth-accent: #1f3473;
    --auth-visual-bg: #00b0f0;
    --auth-text: #1f2a37;
    --auth-text-muted: #6b7280;
    --auth-border: #d9dee5;
    --auth-surface: #ffffff;
    --auth-surface-muted: #f5f7fa;
    --auth-danger: #dc3545;
    --auth-danger-soft: #fdecea;
    --auth-success: #00a86b;
    --auth-success-soft: #e6f6f0;
    --auth-radius: 10px;
    --auth-radius-lg: 16px;
    --auth-space-xs: 4px;
    --auth-space-sm: 8px;
    --auth-space-md: 16px;
    --auth-space-lg: 24px;
    --auth-space-xl: 40px;
    --auth-space-2xl: 56px;
    --auth-form-width: 400px;
    --auth-input-height: 48px;
    position: fixed;
    inset: 0;
    display: flex;
    overflow-y: auto;
    background: var(--auth-surface);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--auth-text);
    z-index: 1;
}

/* Bütün sayfayı kaplayan alan adı fotoğrafı; fotoğraf yüklenene kadar alan adının giriş rengi görünür. */
.auth__visual {
    position: fixed;
    inset: 0;
    background-color: var(--auth-visual-bg);
    background-size: cover;
    background-position: center;
}

.auth__panel {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--auth-space-xl) var(--auth-space-md);
}

.auth__card {
    width: 100%;
    max-width: var(--auth-form-width);
    padding: var(--auth-space-xl) 32px var(--auth-space-2xl);
    background: var(--auth-surface);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--auth-radius-lg);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
}

.auth__logo {
    display: block;
    max-width: 200px;
    max-height: 72px;
    margin: 0 auto var(--auth-space-lg);
}

.auth__title {
    margin: 0 0 var(--auth-space-xs);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--auth-text);
}

.auth__subtitle {
    margin: 0 0 var(--auth-space-lg);
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--auth-text-muted);
}

.auth__field {
    margin-bottom: var(--auth-space-md);
}

.auth__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text);
}

.auth__label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.auth__control {
    position: relative;
}

.auth__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    pointer-events: none;
}

.auth .auth__input {
    width: 100%;
    height: var(--auth-input-height);
    padding: 0 44px;
    font-size: 0.95rem;
    color: var(--auth-text);
    background: var(--auth-surface);
    background-image: none;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth .auth__input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-accent) 18%, transparent);
}

.auth .auth__input.input-validation-error {
    border-color: var(--auth-danger);
}

.auth__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.auth__toggle:hover,
.auth__toggle:focus-visible {
    color: var(--auth-text);
    background: var(--auth-surface-muted);
    outline: none;
}

.auth__toggle svg {
    width: 18px;
    height: 18px;
}

.auth__toggle .auth__eye-off,
.auth__toggle--visible .auth__eye {
    display: none;
}

.auth__toggle--visible .auth__eye-off {
    display: block;
}

.auth__hint {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
}

.auth__error {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--auth-danger);
}

/* Bağlantı sade gri yazıdır; açık tonlu temalarda da okunur. Alt çizgi yalnız üzerine gelince çıkar. */
.auth .auth__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--auth-text-muted);
    text-decoration: none;
}

.auth .auth__link:hover,
.auth .auth__link:focus-visible {
    color: var(--auth-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth__captcha {
    display: flex;
    justify-content: center;
    margin: var(--auth-space-sm) 0 var(--auth-space-md);
}

.auth__alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: var(--auth-space-md);
    padding: 12px 14px;
    font-size: 0.875rem;
    line-height: 1.45;
    border-radius: var(--auth-radius);
}

.auth__alert svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.auth__alert--danger {
    color: #a12a35;
    background: var(--auth-danger-soft);
}

.auth__alert--success {
    color: #00704a;
    background: var(--auth-success-soft);
}

.auth__alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth .auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--auth-space-sm);
    width: 100%;
    height: var(--auth-input-height);
    margin-top: var(--auth-space-sm);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: none;
    border-radius: var(--auth-radius);
}

.auth .auth__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--auth-input-height);
    margin-top: var(--auth-space-sm);
    font-weight: 600;
    color: var(--auth-text);
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
}

.auth__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

.auth__submit--busy .auth__spinner {
    display: inline-block;
}

.auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--auth-space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-text-muted);
    text-decoration: none;
}

.auth__back:hover {
    color: var(--auth-text);
    text-decoration: none;
}

.auth__back svg {
    width: 16px;
    height: 16px;
}

.auth__center {
    text-align: center;
}

.auth__footer {
    margin-top: var(--auth-space-md);
    padding: 4px 12px;
    font-size: 0.8rem;
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    text-align: center;
}

.auth__footer a {
    color: inherit;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .auth__card {
        padding: var(--auth-space-lg) 20px var(--auth-space-xl);
    }
}
