﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0d0b12;
  --surface:   #15121b;
  --surface2:  #1d1826;
  --border:    rgba(255, 255, 255, 0.07);
  --accent:    #ff4d8d;
  --accent2:   #c84dff;
  --text:      #e8e0f0;
  --muted:     #6b5f7a;
  --ok:        #4dff9c;
  --err:       #ff4d4d;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ── Ambient gradient backdrop ──────────────────────────────────────────── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200, 77, 255, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(255, 77, 141, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.logo {
  text-align: center;
  margin-bottom: 28px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text .pink { color: var(--accent); }

.logo-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Divider ────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 -36px 24px;
}

/* ── Form ───────────────────────────────────────────────────────────────── */
.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 38px 10px 12px;
  outline: none;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: rgba(255, 77, 141, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.1);
}

/* Eye toggle inside the input */
.eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color 0.15s;
}

.eye-btn:hover { color: var(--accent); }

.eye-btn svg { width: 16px; height: 16px; }

/* ── Button ─────────────────────────────────────────────────────────────── */
.btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Status ─────────────────────────────────────────────────────────────── */
.status {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.status.visible { display: flex; }

.status.ok   { background: rgba(77, 255, 156, 0.08); color: var(--ok);  border: 1px solid rgba(77, 255, 156, 0.2); }
.status.err  { background: rgba(255, 77, 77, 0.08);  color: var(--err); border: 1px solid rgba(255, 77, 77,  0.2); }
.status.info { background: rgba(255, 77, 141, 0.08); color: var(--accent); border: 1px solid rgba(255, 77, 141, 0.15); }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }
