﻿:root {
  --bg-0: #060a12;
  --bg-1: #0e1630;
  --text: #e4efff;
  --text-soft: #9bb2d8;
  --line: rgba(136, 191, 255, 0.2);
  --panel: rgba(10, 17, 34, 0.72);
  --cyan: #29d5d0;
  --blue: #4d83ff;
  --amber: #ffba63;
  --danger: #ff6f8a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(41, 213, 208, 0.2) 0%, rgba(41, 213, 208, 0) 58%),
    radial-gradient(800px 420px at 92% 10%, rgba(77, 131, 255, 0.19) 0%, rgba(77, 131, 255, 0) 54%),
    linear-gradient(150deg, var(--bg-0) 0%, var(--bg-1) 56%, #131e37 100%);
  overflow: hidden auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: min(540px, 100%);
  background: linear-gradient(160deg, rgba(13, 22, 43, 0.82) 0%, rgba(8, 15, 30, 0.78) 100%);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px) saturate(120%);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.login-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 213, 208, 0.24) 0%, rgba(41, 213, 208, 0) 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--cyan);
}

h1 {
  margin: 10px 0;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
}

.subtitle {
  margin: 0 0 18px;
  color: var(--text-soft);
}

.form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  background: rgba(8, 13, 26, 0.84);
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(41, 213, 208, 0.34);
  outline-offset: 1px;
}

.btn-primary {
  border: 1px solid rgba(41, 213, 208, 0.68);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  color: #031722;
  background: linear-gradient(140deg, #28d4ce 0%, #56eaf4 100%);
  font-weight: 700;
}

.status {
  min-height: 20px;
  margin: 10px 0 6px;
  color: var(--danger);
  font-size: 0.9rem;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.btn-link {
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(8, 13, 25, 0.84);
  font-weight: 600;
}

.btn-link:first-child {
  color: #11131a;
  background: linear-gradient(130deg, #ffd37f 0%, #ffba63 100%);
  border-color: rgba(255, 186, 99, 0.78);
}

.btn-primary:hover,
.btn-link:hover,
.btn-primary:focus,
.btn-link:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.33);
}

@media (max-width: 520px) {
  .links {
    grid-template-columns: 1fr;
  }
}
