/* ================= ROOT ================= */
:root {
  --bg-main: #0B1220;
  --bg-dark: #070D1A;
  --bg-card: #111A2E;
  --primary: #4DA3FF;
  --accent: #BFC7D5;
  --white: #ffffff;
  --error: #ff5c5c;
}

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

/* ================= BODY ================= */
body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top, rgba(77,163,255,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-main), var(--bg-dark));
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
}

/* ================= LOGIN BOX ================= */
.login-box {
  background: linear-gradient(180deg, #111A2E, #0C1325);
  padding: 42px;
  width: 360px;
  border-radius: 18px;
  text-align: center;
  position: relative;

  box-shadow:
    0 25px 80px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.login-box:hover {
  transform: translateY(-6px);
  box-shadow:
    0 35px 100px rgba(77,163,255,0.35),
    inset 0 0 0 1px rgba(77,163,255,0.5);
}

/* ================= LOGO ================= */
.logo {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ================= HEADLINE ================= */
h2 {
  font-weight: 500;
  margin-bottom: 30px;
}

/* ================= INPUTS ================= */
input {
  width: 100%;
  padding: 13px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  background: #0B1220;
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.25s ease;
}

input:focus {
  box-shadow: 0 0 0 2px rgba(77,163,255,0.6);
}

/* ================= BUTTON ================= */
button {
  width: 100%;
  margin-top: 15px;
  background: linear-gradient(90deg, #4DA3FF, #2F80ED);
  border: none;
  color: #08121f;
  font-weight: 700;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(77,163,255,0.6);
}

/* ================= ERROR ================= */
.error {
  color: var(--error);
  font-size: 14px;
  margin-bottom: 15px;
  display: none;
}

/* ================= REGISTER LINK ================= */
.register-text {
  margin-top: 18px;
  font-size: 14px;
  color: var(--accent);
}

.register-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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