/* Nestvadi Pro — giriş ekranı */
:root {
    --nv-bg: #0a1628;
    --nv-bg-2: #0f2847;
    --nv-accent: #22d3b8;
    --nv-accent-dim: rgba(34, 211, 184, 0.15);
    --nv-accent-glow: rgba(34, 211, 184, 0.35);
    --nv-warm: #fbbf24;
    --nv-surface: #ffffff;
    --nv-muted: #64748b;
    --nv-border: #e2e8f0;
    --nv-text: #0f172a;
    --nv-danger: #ef4444;
    --nv-radius: 14px;
    --nv-radius-lg: 20px;
    --nv-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --nv-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --nv-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html.nv-login-html,
html.nv-login-html body {
    height: 100%;
    margin: 0;
}

body.nv-login-body {
    font-family: var(--nv-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--nv-text);
    background: var(--nv-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.nv-login {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
}

/* —— Marka paneli —— */
.nv-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    overflow: hidden;
    background: linear-gradient(145deg, var(--nv-bg) 0%, var(--nv-bg-2) 45%, #134e4a 100%);
}

.nv-login-brand__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, var(--nv-accent-glow), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(251, 191, 36, 0.12), transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.nv-login-brand__inner {
    position: relative;
    z-index: 1;
    animation: nv-fade-up 0.7s ease-out both;
}

.nv-login-brand__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--nv-radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.nv-login-brand__logo img {
    display: block;
    max-width: min(220px, 70vw);
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.nv-login-brand__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.nv-login-brand__title span {
    color: var(--nv-accent);
}

.nv-login-brand__lead {
    margin: 0;
    max-width: 26rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
}

.nv-login-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    max-width: 24rem;
}

.nv-login-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nv-login-highlight:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(34, 211, 184, 0.25);
    transform: translateX(3px);
}

.nv-login-highlight__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 9px;
    font-size: 1rem;
    color: var(--nv-accent);
    background: rgba(34, 211, 184, 0.12);
    border: 1px solid rgba(34, 211, 184, 0.2);
}

.nv-login-highlight__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.nv-login-highlight__body strong {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.nv-login-highlight__body span {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 400;
}

/* Geriye uyumluluk */
.nv-login-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.nv-login-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.nv-login-features li i {
    font-size: 0.9rem;
    color: var(--nv-accent);
}

.nv-login-brand__footer {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    animation: nv-fade-up 0.7s 0.15s ease-out both;
}

.nv-login-brand__footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--nv-transition);
}

.nv-login-brand__footer a:hover {
    color: var(--nv-accent);
}

/* —— Form paneli —— */
.nv-login-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: #f8fafc;
    overflow-y: auto;
}

.nv-login-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: nv-fade-up 0.55s 0.1s ease-out both;
}

.nv-login-card__head {
    margin-bottom: 1.75rem;
}

.nv-login-card__head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--nv-text);
}

.nv-login-card__head p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--nv-muted);
}

/* Uyarılar */
.nv-alert {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    border-radius: var(--nv-radius);
    border: 1px solid transparent;
}

.nv-alert--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.nv-alert--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.nv-alert--info {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #155e75;
}

.nv-alert .close {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.5;
    cursor: pointer;
}

.nv-alert .close:hover {
    opacity: 1;
}

.nv-security {
    margin-bottom: 1.25rem;
    border-radius: var(--nv-radius);
    background: var(--nv-accent-dim);
    border: 1px solid rgba(34, 211, 184, 0.25);
    overflow: hidden;
}

.nv-security summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f766e;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.nv-security summary::-webkit-details-marker {
    display: none;
}

.nv-security summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.6;
}

.nv-security[open] summary::after {
    content: "−";
}

.nv-security__body {
    padding: 0 0.9rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #475569;
}

/* Form alanları */
.nv-field {
    margin-bottom: 1rem;
}

.nv-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.nv-input-wrap {
    display: flex;
    align-items: stretch;
    background: var(--nv-surface);
    border: 1.5px solid var(--nv-border);
    border-radius: var(--nv-radius);
    transition: border-color var(--nv-transition), box-shadow var(--nv-transition);
}

.nv-input-wrap:focus-within {
    border-color: var(--nv-accent);
    box-shadow: 0 0 0 4px var(--nv-accent-dim);
}

.nv-input-wrap__icon {
    flex: 0 0 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
}

.nv-input-wrap:focus-within .nv-input-wrap__icon {
    color: #0d9488;
}

.nv-input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.75rem 0.85rem 0.75rem 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--nv-text);
    outline: none;
}

.nv-input-wrap input::placeholder {
    color: #94a3b8;
}

.nv-input-wrap__toggle {
    flex: 0 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0 var(--nv-radius) var(--nv-radius) 0;
    transition: color var(--nv-transition);
}

.nv-input-wrap__toggle:hover {
    color: #0d9488;
}

.nv-field--otp input {
    text-align: center;
    letter-spacing: 0.45em;
    font-size: 1.35rem;
    font-weight: 600;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.nv-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.nv-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #475569;
    user-select: none;
}

.nv-check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #0d9488;
    cursor: pointer;
}

.nv-ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 999px;
}

.nv-ip-badge i {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Captcha */
.nv-captcha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.nv-captcha img {
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--nv-border);
}

.nv-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid var(--nv-border);
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--nv-transition), border-color var(--nv-transition);
}

.nv-btn-ghost:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Gönder */
.nv-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
    border: none;
    border-radius: var(--nv-radius);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    transition: transform var(--nv-transition), box-shadow var(--nv-transition), opacity var(--nv-transition);
}

.nv-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.4);
}

.nv-btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.nv-btn-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.nv-btn-submit__spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nv-spin 0.65s linear infinite;
}

.nv-btn-submit.is-loading .nv-btn-submit__spinner {
    display: block;
}

.nv-btn-submit.is-loading .nv-btn-submit__label {
    opacity: 0.85;
}

.nv-otp-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--nv-muted);
    margin: -0.5rem 0 1rem;
}

.nv-login-mobile-dev {
    display: none;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--nv-border);
    font-size: 0.78rem;
    color: var(--nv-muted);
}

.nv-login-mobile-dev a {
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
}

@keyframes nv-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nv-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .nv-login {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .nv-login-brand {
        min-height: auto;
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .nv-login-brand__lead,
    .nv-login-features,
    .nv-login-highlights {
        display: none;
    }

    .nv-login-brand__logo {
        margin-bottom: 1rem;
        padding: 0.65rem 1rem;
    }

    .nv-login-brand__logo img {
        max-height: 48px;
    }

    .nv-login-brand__title {
        font-size: 1.35rem;
        margin-bottom: 0;
    }

    .nv-login-brand__footer {
        display: none;
    }

    .nv-login-mobile-dev {
        display: block;
    }

    .nv-login-main {
        border-radius: 1.25rem 1.25rem 0 0;
        margin-top: -0.75rem;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nv-login-brand__inner,
    .nv-login-card,
    .nv-login-brand__footer {
        animation: none;
    }

    .nv-btn-submit:hover:not(:disabled) {
        transform: none;
    }
}
