/* login.css — Modern login page */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #0a0f1a;
  color: #e2e8f0;
  min-height: 100vh;
}

/* ── Page layout ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* ── Background blobs ────────────────────────────────────── */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.login-blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #00F5A0, #00D9F5);
  top: -10%;
  right: -10%;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.login-blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  bottom: -10%;
  left: -10%;
  animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* ── Card ────────────────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 36px 36px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(0,245,160,0.04);
}

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

.login-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* ── Title & subtitle ────────────────────────────────────── */
.login-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.6;
}
/* ── Language toggle ────────────────────────────────────── */
.login-lang-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.login-lang-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.login-lang-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #94a3b8;
}
.login-lang-btn.active {
  background: rgba(0,245,160,0.15);
  border-color: rgba(0,245,160,0.3);
  color: #00F5A0;
}

/* ── Divider ───────────────────────────────────────────── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
/* ── Error banner ────────────────────────────────────────── */
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

.login-error svg { flex-shrink: 0; stroke: #f87171; }

/* ── Form ────────────────────────────────────────────────── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder { color: #475569; }

.form-input:focus {
  border-color: #00F5A0;
  box-shadow: 0 0 0 3px rgba(0, 245, 160, 0.15);
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  display: flex;
  transition: color 0.15s;
}
.password-toggle:hover { color: #94a3b8; }

/* ── Button ──────────────────────────────────────────────── */
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  background: linear-gradient(135deg, #00F5A0, #00D9F5);
  color: #0a0f1a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 245, 160, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

/* ── Footer ──────────────────────────────────────────────── */
.login-footer {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  font-size: 12px;
  color: #475569;
  text-align: center;
}

/* ── Registration link ────────────────────────────────────── */
.login-link {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
  position: relative;
  z-index: 1;
}
.login-link a {
  color: #00F5A0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.login-link a:hover {
  color: #00D9F5;
  text-decoration: underline;
}

/* ── Field errors ────────────────────────────────────────── */
.field-error {
  color: #f87171;
  font-size: 0.78rem;
  margin-top: 4px;
  padding-left: 4px;
}

/* ── Pending approval warning ────────────────────────────── */
.login-warning {
  background: rgba(251, 191, 36, 0.1) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fbbf24 !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px 28px;
    border-radius: 16px;
  }
  .login-logo-img { width: 56px; height: 56px; }
  .login-title { font-size: 20px; }
}
