/* =========================================================
       GLOBAL
    ========================================================= */
* {
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;

  background: linear-gradient(
      rgba(248, 250, 252, 0.45),
      rgba(224, 242, 254, 0.45)
    ),
    url("https://images.unsplash.com/photo-1762951566347-ebe046f817e1?w=1032&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
       GLASS LOGIN BOX
    ========================================================= */
.login-box {
  width: 100%;
  max-width: 420px;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);

  padding: 40px 42px;
  
  width: 100%;
  max-width: 460px;
  margin: auto;

  animation: fadeSlideUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
       HEADER
    ========================================================= */
.login-title {
  text-align: center;
  margin-bottom: 26px;
}

.login-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.login-title p {
  margin-top: 6px;
  font-size: 14px;
  color: #475569;
}

/* =========================================================
       FORM
    ========================================================= */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  outline: none;

  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease;
}

input:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* =========================================================
       BUTTON
    ========================================================= */
.btn-login {
  width: 100%;
  margin-top: 10px;

  padding: 12px;
  border-radius: 14px;
  border: none;
  cursor: pointer;

  font-weight: 700;
  font-size: 14px;
  color: #fff;

  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);

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

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-back {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 16px;
  border-radius: 14px;

  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #1e3a8a;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);

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

.btn-back i {
  transition: transform 0.25s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.btn-back:hover i {
  transform: translateX(-3px);
}

.btn-back:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

/* =========================================================
       FOOTER
    ========================================================= */
.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #475569;
}

.login-footer span {
  font-weight: 600;
  color: #1d4ed8;
}

/* =========================================================
   ALERT – DANGER (GLASS)
========================================================= */
.alert {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 16px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;

  display: flex;
  align-items: center;
  gap: 10px;
}

/* DANGER */
.alert-danger {
  color: #7f1d1d;

  background: linear-gradient(
    135deg,
    rgba(254, 202, 202, 0.55),
    rgba(254, 226, 226, 0.45)
  );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(239, 68, 68, 0.35);

  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);

  animation: alertPop 0.35s ease;
}

/* ICON OPTIONAL */
.alert-danger::before {
  content: "⚠";
  font-size: 16px;
  line-height: 1;
}

/* ANIMATION */
@keyframes alertPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 576px) {
  .login-box {
    padding: 24px 20px;
    border-radius: 18px;
  }
}