﻿/* Views/Shared/_AuthLayout.cshtml — giriş, kayıt, şifremi unuttum ve aktivasyon ekranları */

.auth {
    display: flex;
    min-height: 100vh;
}

/* Sol marka paneli (lg ve üstü) */
.auth-brand {
    flex: 0 0 42%;
    max-width: 560px;
    /* Uzun formlarda (kayıt) panel ve alt bilgi ekranda sabit kalsın */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    color: var(--bs-white);
    background-color: var(--finteo-brand-color);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(var(--bs-white-rgb), .14), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(var(--bs-black-rgb), .28), transparent 55%);
}

.auth-brand-title {
    max-width: 18ch;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-brand-text {
    max-width: 38ch;
    margin: 0;
    font-size: 1.0625rem;
    opacity: .8;
}

.auth-brand-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .875rem;
}

.auth-brand-copy {
    opacity: .6;
}

.auth-brand-logo {
    align-self: flex-start;
    color: inherit;
}

/* Web sitesine dönüş */
.auth-site-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin-bottom: 2rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.auth-site-link:hover,
.auth-site-link:focus-visible {
    color: var(--bs-emphasis-color);
}

/* Ürün listesi */
.auth-products {
    display: grid;
    gap: 1.25rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.auth-product {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.auth-product-icon {
    flex: 0 0 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    border-radius: .5rem;
    font-size: 1.125rem;
    background-color: rgba(var(--bs-white-rgb), .14);
}

.auth-product-name {
    display: block;
    font-weight: 700;
    letter-spacing: .02em;
}

.auth-product-text {
    display: block;
    font-size: .8rem;
    opacity: .8;
}

/* Sosyal medya */
.auth-social {
    display: flex;
    gap: .5rem;
}

.auth-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1rem;
    color: inherit;
    text-decoration: none;
    opacity: .75;
    transition: opacity .15s ease, background-color .15s ease;
}

.auth-social a:hover,
.auth-social a:focus-visible {
    opacity: 1;
    background-color: rgba(var(--bs-white-rgb), .14);
}

.auth-social-mobile {
    justify-content: center;
    margin-top: 1.5rem;
    color: var(--bs-secondary-color);
}

.auth-social-mobile a:hover,
.auth-social-mobile a:focus-visible {
    color: var(--bs-emphasis-color);
    background-color: var(--bs-tertiary-bg);
}

/* Onay kutuları ve reCAPTCHA */
.auth .form-check-label {
    font-size: .875rem;
    color: var(--bs-secondary-color);
}

.auth .form-check-label a {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.auth-note {
    font-size: .8125rem;
    color: var(--bs-secondary-color);
}

.auth-note a {
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.auth-recaptcha {
    min-height: 78px;
    margin-bottom: 1.5rem;
}

/* reCAPTCHA v2 widget'ı sabit 304px; dar ekranda taşmaması için ölçeklenir */
@media (max-width: 359.98px) {
    .auth-recaptcha .g-recaptcha {
        transform: scale(.88);
        transform-origin: 0 0;
    }
}

/* Form alanı */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--bs-body-bg);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-mobile-logo {
    margin-bottom: 2.5rem;
}

.auth-title {
    margin-bottom: .375rem;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--bs-emphasis-color);
}

.auth-subtitle {
    margin-bottom: 2rem;
    color: var(--bs-secondary-color) !important;
}

.auth .form-label {
    margin-bottom: .375rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.auth .form-control-lg,
.auth .btn-lg {
    padding: .75rem 1rem;
    font-size: 1rem;
    border-radius: .5rem;
}

.auth .btn-lg {
    font-weight: 600;
}

.auth .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .15);
}

.auth-link,
.auth-footnote a {
    font-weight: 600;
    color: var(--bs-primary);
    text-decoration: none;
}

.auth-link:hover,
.auth-footnote a:hover {
    text-decoration: underline;
}

.auth-password {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 3rem;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--bs-secondary-color);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    color: var(--bs-emphasis-color);
}

.auth-footnote {
    margin: 2rem 0 0;
    text-align: center;
    font-size: .9375rem;
    color: var(--bs-secondary-color);
}

/* 2 faktörlü doğrulama */
.auth-target {
    margin: -1.25rem 0 1.5rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.auth-target:empty {
    display: none;
}

.auth-otp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.auth-otp .form-control {
    height: 4rem;
    padding: 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    border-radius: .5rem;
}

.auth-ticks {
    min-height: 1.25rem;
    margin-top: .75rem;
    text-align: center;
    font-size: .875rem;
    color: var(--bs-secondary-color);
}
