/* auth.css — страницы входа/регистрации/сброса (email-auth, фаза 5). Тёмная тема кабинета v3. */
.tgs-auth {
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px calc(60px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(900px 460px at 15% -8%, rgba(124, 92, 252, .18) 0%, transparent 62%),
    radial-gradient(620px 380px at 90% 4%, rgba(181, 72, 242, .12) 0%, transparent 68%),
    #06060f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f4ff; -webkit-font-smoothing: antialiased;
}
.tgs-auth * { box-sizing: border-box; }
.tgs-auth-card {
  width: 100%; max-width: 400px;
  background: #12121f; border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px; padding: 30px 26px 26px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .7);
}
@keyframes tgsAuthRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.tgs-auth-rise { animation: tgsAuthRise .4s ease both; }

.tgs-auth-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 20px; }
.tgs-auth-logo {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #7c5cfc, #b548f2);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px;
}
.tgs-auth-logo-center { display: flex; margin: 0 auto 16px; }
.tgs-auth-brand-text { font-family: Manrope, sans-serif; font-weight: 800; font-size: 19px; color: #f5f4ff; }
.tgs-auth-brand-text span { color: #8a6dfe; }

.tgs-auth-title { font-family: Manrope, sans-serif; font-weight: 800; font-size: 23px; margin: 0 0 6px; color: #f5f4ff; }
.tgs-auth-sub { font-size: 14px; color: #918fae; margin: 0 0 22px; line-height: 1.5; }

.tgs-auth-form { display: flex; flex-direction: column; gap: 14px; }
.tgs-auth-field { display: flex; flex-direction: column; gap: 7px; }
.tgs-auth-field > span { font-size: 12.5px; font-weight: 600; color: #a7a4c4; }
.tgs-auth-field input {
  width: 100%; padding: 13px 15px; font-size: 15px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; color: #f5f4ff; outline: none; transition: border-color .15s ease, background .15s ease;
}
.tgs-auth-field input::placeholder { color: #57556e; }
.tgs-auth-field input:focus { border-color: rgba(124, 92, 252, .6); background: rgba(255, 255, 255, .06); }

.tgs-auth-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #a7a4c4; line-height: 1.4; cursor: pointer; }
.tgs-auth-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: #7c5cfc; flex-shrink: 0; }
.tgs-auth-check a { color: #8a6dfe; text-decoration: none; }

.tgs-auth-error {
  font-size: 13px; color: #fca5a5; background: rgba(248, 113, 113, .08);
  border: 1px solid rgba(248, 113, 113, .25); border-radius: 10px; padding: 10px 12px; line-height: 1.45;
}
.tgs-auth-ok {
  font-size: 13.5px; color: #86efac; background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .25); border-radius: 10px; padding: 11px 13px; line-height: 1.45;
}

.tgs-auth-btn {
  width: 100%; margin-top: 4px; padding: 14px 16px; font-size: 15.5px; font-weight: 700;
  font-family: Manrope, sans-serif; color: #fff; text-align: center; text-decoration: none; display: block;
  background: linear-gradient(135deg, #7c5cfc, #b548f2); border: 0; border-radius: 12px;
  cursor: pointer; transition: filter .15s ease, opacity .15s ease;
}
.tgs-auth-btn:hover { filter: brightness(1.08); }
.tgs-auth-btn[disabled] { opacity: .6; cursor: not-allowed; }

.tgs-auth-tg {
  width: 100%; padding: 13px 16px; font-size: 15px; font-weight: 600;
  color: #fff; background: #229ed9; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px; transition: filter .15s ease;
}
.tgs-auth-tg:hover { filter: brightness(1.06); }
.tgs-auth-tg i { font-size: 19px; }

.tgs-auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tgs-auth-links a { font-size: 13.5px; color: #8a6dfe; text-decoration: none; }
.tgs-auth-links a:hover { text-decoration: underline; }

.tgs-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #57556e; font-size: 12.5px; }
.tgs-auth-or::before, .tgs-auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .09); }

.tgs-auth-spinner {
  width: 34px; height: 34px; margin: 8px auto 0; border-radius: 50%;
  border: 3px solid rgba(124, 92, 252, .2); border-top-color: #8a6dfe; animation: tgsAuthSpin .8s linear infinite;
}
@keyframes tgsAuthSpin { to { transform: rotate(360deg); } }

.tgs-auth-note { font-size: 13px; color: #918fae; line-height: 1.55; margin: 8px 0 0; }
.tgs-auth-icon-ok, .tgs-auth-icon-mail { font-size: 40px; display: block; text-align: center; margin: 4px 0 12px; }
.tgs-auth-icon-ok { color: #4ade80; }
.tgs-auth-icon-mail { color: #8a6dfe; }
