/* Biriyle — Giriş / Kayıt (brandboard sol, form sağ) */

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.auth-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: row-reverse;
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #0f172a;
    overflow: hidden;
}

/* ── Sol: Form paneli ── */
.auth-panel {
    width: min(100%, 600px);
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px clamp(24px, 4vw, 56px);
    background: #fff;
    border-left: 1px solid #e2e8f0;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-panel__top {
    margin-bottom: 36px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s;
}

.auth-back i {
    font-size: 14px;
}

.auth-back:hover {
    color: #2196F3;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    text-decoration: none;
}

.auth-brand__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.2);
}

.auth-panel h1 {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 24px 0 8px;
}

.auth-panel__lead {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    max-width: 460px;
}

.auth-form {
    max-width: 480px;
    width: 100%;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #2196F3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 13px;
}

.auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: #64748b;
    cursor: pointer;
    line-height: 1.45;
}

.auth-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #2196F3;
    flex-shrink: 0;
}

.auth-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: #2196F3;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.auth-btn:hover {
    background: #1565C0;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.auth-btn:active {
    transform: scale(0.99);
}

.auth-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-switch {
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}

.auth-switch a {
    color: #2196F3;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.auth-alert--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.auth-alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

/* ── Sol: Brandboard (tam yükseklik, kenar boşluksuz) ── */
.auth-brandboard {
    flex: 1;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-height: 0;
    background:
        radial-gradient(ellipse 70% 50% at 85% 15%, rgba(33, 150, 243, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        linear-gradient(145deg, #070d18 0%, #0f172a 45%, #111827 100%);
    color: #fff;
}

.auth-brandboard__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.35) 50%, rgba(15, 23, 42, 0.75) 100%),
        radial-gradient(circle at 30% 20%, rgba(33, 150, 243, 0.15) 0%, transparent 50%);
}

.auth-brandboard__inner {
    position: relative;
    z-index: 10;
    padding: clamp(32px, 5vw, 60px);
    max-width: 560px;
}

.auth-brandboard__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(33, 150, 243, 0.12);
    border: 1px solid rgba(33, 150, 243, 0.28);
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 28px;
}

.auth-brandboard__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
    animation: authLivePulse 2s ease-in-out infinite;
}

@keyframes authLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.15); }
}

.auth-brandboard__title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

.auth-brandboard__title span {
    display: block;
    background: linear-gradient(135deg, #93c5fd 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brandboard__lead {
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    line-height: 1.65;
    max-width: 440px;
    margin-bottom: 40px;
}

.auth-brandboard__stats {
    display: flex;
    gap: clamp(24px, 4vw, 40px);
    flex-wrap: wrap;
}

.auth-brandboard__stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.auth-brandboard__stat-value .accent {
    color: #93c5fd;
}

.auth-brandboard__stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 4px;
}

.auth-brandboard__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brandboard__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #e2e8f0;
}

.auth-brandboard__list i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(33, 150, 243, 0.15);
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-brandboard__floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.auth-brandboard__float {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: authFloatCard 6s ease-in-out infinite;
}

.auth-brandboard__float:nth-child(1) {
    top: 16%;
    right: 10%;
    animation-delay: 0s;
}

.auth-brandboard__float:nth-child(2) {
    bottom: 22%;
    left: 8%;
    animation-delay: 2s;
}

.auth-brandboard__float:nth-child(3) {
    top: 52%;
    right: 6%;
    animation-delay: 4s;
}

@keyframes authFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-brandboard__float-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.auth-brandboard__float-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.auth-brandboard__float-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 960px) {
    html,
    body {
        overflow: auto;
    }

    .auth-page {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        flex-direction: column;
        overflow: visible;
    }

    .auth-panel {
        width: 100%;
        min-height: 100vh;
        border-left: none;
    }

    .auth-brandboard {
        display: none;
    }
}
