/* Wein – ortak giriş / şifre sayfaları (web çalışan + admin) */

:root {
    --wein-auth-blue: #0a66c2;
    --wein-auth-blue-dark: #084c91;
    --wein-auth-admin-accent: #1e3a5f;
}

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

.wein-auth-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(145deg, #e8eef6 0%, #f0f2f5 38%, #f8f9fa 100%);
    position: relative;
    overflow-x: hidden;
}

.wein-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(10, 102, 194, 0.12), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.wein-auth-page--admin {
    background: linear-gradient(145deg, #1a2332 0%, #243447 40%, #2d3e52 100%);
}

.wein-auth-page--admin::before {
    background: radial-gradient(ellipse 70% 45% at 70% 0%, rgba(100, 149, 237, 0.15), transparent 50%);
}

.wein-auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.wein-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.wein-auth-page--admin .wein-auth-card {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #2c4a6e;
}

.wein-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.wein-auth-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--wein-auth-blue) 0%, var(--wein-auth-blue-dark) 100%);
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.35);
}

.wein-auth-page--admin .wein-auth-brand-mark {
    background: linear-gradient(145deg, #3d5a80 0%, var(--wein-auth-admin-accent) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.wein-auth-brand-text {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a1d21;
}

.wein-auth-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    background: rgba(10, 102, 194, 0.1);
    color: var(--wein-auth-blue);
    margin-bottom: 0.75rem;
}

.wein-auth-page--admin .wein-auth-badge {
    background: #e8edf4;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.wein-auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1d21;
    text-align: center;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.wein-auth-lead {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.wein-auth-alert {
    border-radius: 12px;
    border: none;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.wein-auth-field {
    margin-bottom: 1rem;
}

.wein-auth-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.35rem;
}

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

.wein-auth-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #868e96;
    font-size: 0.95rem;
    pointer-events: none;
}

.wein-auth-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wein-auth-input:focus {
    outline: none;
    border-color: var(--wein-auth-blue);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.2);
}

.wein-auth-submit {
    width: 100%;
    height: 3rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    cursor: pointer;
    background: linear-gradient(135deg, var(--wein-auth-blue) 0%, var(--wein-auth-blue-dark) 100%);
    box-shadow: 0 8px 22px rgba(10, 102, 194, 0.35);
    transition: transform 0.12s, box-shadow 0.2s;
}

.wein-auth-submit:hover {
    box-shadow: 0 10px 28px rgba(10, 102, 194, 0.45);
    color: #fff !important;
}

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

.wein-auth-page--admin .wein-auth-submit {
    background: linear-gradient(135deg, #4a6fa5 0%, #2c4a6e 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wein-auth-page--admin .wein-auth-submit:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.wein-auth-foot {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    color: #868e96;
}

.wein-auth-foot a {
    color: var(--wein-auth-blue);
    font-weight: 600;
    text-decoration: none;
}

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

.wein-auth-page--admin .wein-auth-brand {
    margin-bottom: 1.1rem;
}

.wein-auth-page--admin .wein-auth-lead {
    margin-bottom: 1.25rem;
}

/* İlk giriş — yasal onay akışı */
.wein-auth-page--legal-onboard {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .wein-auth-page--legal-onboard {
        align-items: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.wein-auth-shell--legal {
    max-width: 640px;
}

.wein-auth-card--legal {
    border-radius: 22px;
    padding: 2rem 1.75rem 1.75rem;
}

.letter-spacing-sm {
    letter-spacing: 0.06em;
    font-size: 0.65rem !important;
}

.wein-legal-missing-alert {
    border-radius: 14px;
    border: none;
}

.wein-legal-progress-track {
    height: 6px;
    border-radius: 99px;
    background: #e9ecef;
    overflow: hidden;
}

.wein-legal-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0a66c2, #084c91);
    transition: width 0.35s ease;
}

.wein-legal-doc-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid #e8ecf0;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.wein-legal-doc-card.is-done {
    border-color: rgba(25, 135, 84, 0.35);
    background: rgba(25, 135, 84, 0.06);
}

.wein-legal-doc-card.is-blocked {
    opacity: 0.72;
}

.wein-legal-doc-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(145deg, #0a66c2 0%, #084c91 100%);
    flex-shrink: 0;
}

.wein-legal-doc-card.is-done .wein-legal-doc-num {
    background: linear-gradient(145deg, #198754 0%, #146c43 100%);
}

.wein-legal-open-btn {
    font-weight: 600;
    border-radius: 10px;
    color: #fff !important;
    background: linear-gradient(135deg, #0a66c2 0%, #084c91 100%);
    border: none;
    padding: 0.45rem 0.9rem;
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.3);
}

.wein-legal-open-btn:hover {
    color: #fff !important;
    filter: brightness(1.05);
}

.wein-legal-badge-done {
    background: rgba(25, 135, 84, 0.15) !important;
    color: #146c43 !important;
    font-weight: 600;
}

.wein-legal-modal-head {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 0;
    padding: 1.25rem 1.5rem;
}

.wein-legal-modal-content {
    border-radius: 18px;
    overflow: hidden;
}

.wein-legal-scroll {
    max-height: min(52vh, 440px);
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.wein-legal-prose {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #212529;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

/* Yapıştırılmış Word stilleri bazen beyaz metin bırakıyor */
.wein-legal-scroll.wein-legal-prose,
.wein-legal-scroll.wein-legal-prose p,
.wein-legal-scroll.wein-legal-prose li,
.wein-legal-scroll.wein-legal-prose td,
.wein-legal-scroll.wein-legal-prose th {
    color: #212529;
}

.wein-legal-prose h2,
.wein-legal-prose h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.wein-legal-prose p {
    margin-bottom: 0.75rem;
}

.wein-legal-check .form-check-input:checked {
    background-color: #0a66c2;
    border-color: #0a66c2;
}

.wein-legal-confirm-btn {
    font-weight: 600;
    border-radius: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, #0a66c2 0%, #084c91 100%);
    border: none;
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.35);
}

.wein-legal-confirm-btn:hover:not(:disabled) {
    color: #fff !important;
    filter: brightness(1.06);
}

.wein-legal-confirm-btn:disabled {
    opacity: 0.45;
}
