/* SmartView — giriş, kayıt, şifre sıfırlama ve iletişim sayfaları (mevcut sınıf adlarıyla) */

body {
  min-height: 100vh;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(15,168,245,.22), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(61,194,255,.08), transparent 70%),
    var(--bg);
}
body::after { /* afişteki dağ silüeti */
  content: ""; position: fixed; inset: auto 0 0 0; height: 28vh; z-index: -1; pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200V120l160-70 140 60 180-100 200 120 160-70 180 80 180-60v140z' fill='%230d1a24'/%3E%3Cpath d='M0 200v-40l220-60 180 50 220-80 240 90 180-50 160 40v50z' fill='%23091219'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}

.login-wrapper, .contact-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 72px 16px 40px; }
.login-card, .contact-card {
  width: min(440px, 100%); padding: 32px 28px; border-radius: 24px;
  background: rgba(26,26,26,.92); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: sv-pop 320ms var(--ease-emph) both;
}
.contact-card { width: min(620px, 100%); }
.login-header, .contact-header { text-align: center; margin-bottom: 24px; }
.login-logo img, .contact-logo img { height: 40px; width: auto; margin: 0 auto 18px; }
.login-header h2, .contact-header h2, .contact-header h1 { margin: 0 0 6px; font-weight: 900; font-size: 26px; letter-spacing: -.01em; color: #fff; }
.login-header p, .contact-header p { margin: 0; color: var(--text-2); font-size: 15px; }

form { display: grid; gap: 16px; }
.form-group { display: grid; gap: 8px; margin: 0; }
.form-group label { font-weight: 500; font-size: 13px; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea, .modal-box input {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-row);
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: #fff; font-size: 15px; outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select option { background: var(--surface); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .modal-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field-error { color: var(--danger-2); font-size: 12px; min-height: 0; }
.char-count { color: var(--text-3); font-size: 12px; text-align: right; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.checkbox-label, .terms-group { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.terms-group { align-items: flex-start; }
.checkbox-label input, .terms-group input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.terms-group label { color: var(--text-2); font-weight: 400; }
.link-forgot, .link-register, .link-login, .terms-group a { color: var(--accent-2); font-weight: 500; }
.link-forgot:hover, .link-register:hover, .link-login:hover { color: #fff; }

.btn-login, .btn-submit, .btn-send, .btn-goto-login {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--r-pill); background: #fff; color: #000; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: transform var(--t-spring) var(--ease-spring), background-color 160ms, box-shadow 200ms;
}
.btn-login:hover, .btn-submit:hover, .btn-send:hover, .btn-goto-login:hover { background: #e6e6e6; color: #000; }
.btn-login:active, .btn-submit:active, .btn-google:active { transform: scale(.97); }
.btn-login:focus-visible, .btn-submit:focus-visible, .btn-send:focus-visible, .btn-goto-login:focus-visible { outline: none; transform: scale(1.04); box-shadow: 0 0 0 3px var(--accent), var(--shadow-focus); }
.btn-login:disabled, .btn-submit:disabled, .btn-send:disabled { opacity: .6; cursor: wait; }
.btn-goto-login { margin-top: 18px; }

.btn-google, .btn-cancel, .btn-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 20px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--glass); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform var(--t-spring) var(--ease-spring), background-color 160ms;
}
.btn-google:hover, .btn-cancel:hover, .btn-back:hover { background: var(--glass-2); color: #fff; }
.btn-google:focus-visible, .btn-cancel:focus-visible, .btn-back:focus-visible { outline: none; background: #fff; color: #000; transform: scale(1.04); }
.sv-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: 13px; }
.sv-divider::before, .sv-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.login-footer { margin-top: 22px; text-align: center; color: var(--text-2); font-size: 14px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.back-home a, .back-home { color: var(--text-2); font-size: 14px; }
.back-home a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); transition: background-color 160ms, color 160ms; }
.back-home a:hover { background: var(--glass); color: #fff; }

.trial-badge { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--r-row); background: var(--accent-soft); border: 1px solid rgba(15,168,245,.35); color: var(--text-2); font-size: 14px; }
.trial-badge strong { display: block; color: #fff; margin-bottom: 2px; }
.password-strength { height: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); overflow: hidden; }
.password-strength-bar { height: 100%; width: 0; border-radius: inherit; transition: width 260ms var(--ease-emph), background-color 160ms; }
.password-strength-bar.strength-weak { background: var(--danger); }
.password-strength-bar.strength-medium { background: #f5b014; }
.password-strength-bar.strength-strong { background: var(--ok); }
.password-strength-text { font-size: 12px; color: var(--text-3); }

.success-card, .invalid-token, .forgot-success { text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--text-2); }
.success-card h3, .invalid-token h3, .forgot-success h3 { margin: 6px 0 0; color: #fff; font-weight: 900; font-size: 22px; }
.success-card p, .invalid-token p { margin: 0; }
.success-icon, .invalid-token .icon, .forgot-success .icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(70,211,105,.14); color: var(--ok); }
.invalid-token .icon { background: rgba(255,77,77,.14); color: var(--danger-2); }
.success-icon .i, .invalid-token .icon .i, .forgot-success .icon .i { width: 36px; height: 36px; }
.email-highlight { color: #fff !important; font-weight: 700; word-break: break-all; }

.info-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.info-box { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 10px; border-radius: var(--r-row); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.info-box .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.info-box .label { font-size: 12px; color: var(--text-3); }
.info-box .value { font-size: 13px; color: #fff; font-weight: 500; word-break: break-word; }
@media (max-width: 520px) { .info-boxes { grid-template-columns: 1fr; } .info-box { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; } .info-box .icon { grid-row: span 2; } }

/* Dil seçici (sağ üst) */
.auth-lang { position: fixed; top: 16px; right: 16px; z-index: 50; }
.auth-lang select { width: auto; min-height: 40px; padding: 8px 40px 8px 14px; border-radius: var(--r-pill); background-color: var(--glass); font-size: 14px; }
.auth-brand { position: fixed; top: 18px; left: 16px; z-index: 50; }
.auth-brand img { height: 30px; width: auto; }
@media (max-width: 520px) { .auth-brand { display: none; } }

/* Yükleniyor */
.loader { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; animation: sv-spin .8s linear infinite; display: inline-block; }
.hidden { display: none !important; }

/* Şifremi unuttum penceresi */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); animation: sv-fade 200ms ease both; }
.modal-box { width: min(420px, 100%); padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2); display: grid; gap: 14px; animation: sv-pop 280ms var(--ease-emph) both; }
.modal-box h3 { margin: 0; font-weight: 900; font-size: 20px; color: #fff; }
.modal-box p { margin: 0; color: var(--text-2); font-size: 14px; }
#forgotForm { display: grid; gap: 14px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions > * { flex: 1; min-height: 46px; }

/* Bildirim */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: var(--r-pill); background: #fff; color: #000; font-weight: 500; font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.toast.error { background: #2a1414; color: #ffd6d6; border: 1px solid rgba(255,77,77,.4); }
.toast-icon { font-weight: 900; }
