/* ===== WEB Basic: login.css (login.html) ===== */

/* --- Base reset --- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #f2f2f2;
  background: #0b0b0c;
  line-height: 1.5;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* --- Header (same vibe as index) --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  font-size: 18px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nav__link {
  text-decoration: none;
  color: rgba(242, 242, 242, 0.9);
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.2s;
}
.nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* --- Page background --- */
.page {
  min-height: 100vh;
  padding-top: 74px; /* header offset */
}

.login {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  position: relative;

  /* background placeholder (same approach as hero) */
  background-image: url("images/metallica-login.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 60px 0;
}

.login__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(180, 0, 0, 0.26), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.82), rgba(0,0,0,0.58), rgba(0,0,0,0.90));
}

.login__content {
  position: relative;
  display: flex;
  justify-content: center;
}

/* --- Card (form) --- */
.card {
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.card__title {
  margin: 0 0 8px;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card__subtitle {
  margin: 0 0 18px;
  color: rgba(242, 242, 242, 0.85);
}

/* --- Form --- */
.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.78);
}

.field__input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  outline: none;
  font-size: 14px;
}

.field__input::placeholder {
  color: rgba(255,255,255,0.55);
}

.field__input:focus {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}

/* --- Button --- */
.btn {
  display: inline-block;
  width: 100%;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;

  background: linear-gradient(180deg, rgba(180,0,0,0.95), rgba(120,0,0,0.95));
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
  transition: transform 0.15s, filter 0.15s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* --- Hint & Error --- */
.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.78);
}
.hint__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.35);
}
.hint__link:hover {
  border-bottom-color: rgba(255,255,255,0.7);
}

.error {
  margin: 0;
  min-height: 18px;
  font-weight: 700;
  color: rgba(255, 70, 70, 0.95);
}

/* --- Footer --- */
.footer {
  padding: 24px 0;
  background: #070708;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__text {
  margin: 0;
  color: rgba(242, 242, 242, 0.75);
}
.footer__link {
  color: rgba(242, 242, 242, 0.9);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.footer__link:hover {
  background: rgba(255,255,255,0.10);
}

/* ===== Popup (toast) для помилки входу — БІЛЬШИЙ і ПОМІТНІШИЙ ===== */
.toast {
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  z-index: 999;
  width: min(720px, 94%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
}

.toast.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
  pointer-events: auto;
}

.toast__body {
  display: flex;
  align-items: center;
  gap: 14px;

  border-radius: 18px;
  padding: 18px 18px;

  /* темніший фон + сильніший контраст */
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.75),
    0 0 0 2px rgba(180, 0, 0, 0.35); /* червона "рамка" */

  backdrop-filter: blur(12px);
}

/* велика "іконка-удар" */
.toast__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 900;
  font-size: 20px;
  color: #ffffff;

  background: linear-gradient(180deg, rgba(210,0,0,1), rgba(120,0,0,1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.55),
    0 0 22px rgba(210, 0, 0, 0.35); /* glow */
}

.toast__content {
  flex: 1;
}

.toast__title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
  color: #ffffff;
}

.toast__text {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

/* велика, помітна кнопка закриття */
.toast__close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  width: 38px;
  height: 38px;

  border-radius: 12px;
  cursor: pointer;

  font-size: 24px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.2s;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

/* На мобільних — ще більший відступ знизу, щоб не перекривало */
@media (max-width: 520px) {
  .toast {
    bottom: 18px;
  }

  .toast__body {
    padding: 16px;
  }
}



