/* =========================
   GLOBAL RESET & BASE
   ========================= */
/* =========================
   BACKGROUND DECOR
   ========================= */
   body {
  background: #f5f6fa;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
body::before,
body::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 45%;
  background: #2c3e50;
  z-index: 0;
}

body::before {
  left: 0;
  transform: skewY(-8deg);
  transform-origin: left top;
}

body::after {
  right: 0;
  transform: skewY(-8deg);
  transform-origin: right top;
}

/* =========================
   CONTAINER CARD
   ========================= */
.container {
  width: 420px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 40px 38px;
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

/* =========================
   FORMS
   ========================= */
.form {
  display: none;
  width: 100%;
  flex-direction: column;
}

.form.active {
  display: flex;
}

.form h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 25px;
}

/* Inputs */
.form input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #fff;
  transition: 0.3s;
}

.form input:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 6px rgba(44, 62, 80, 0.2);
  outline: none;
}

/* Buttons */
.form button {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #2c3e50;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.form button:hover {
  background: #1b2838;
  transform: translateY(-2px);
}

/* Forgot password */
.forgot-password {
  text-align: right;
  margin-bottom: 10px;
}

.forgot-password a {
  font-size: 13px;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password a:hover {
  color: #1b2838;
  text-decoration: underline;
}

/* Footer link */
.form p {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  color: #6b7280;
}

.form p a {
  color: #2c3e50;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.form p a:hover {
  color: #1b2838;
  text-decoration: underline;
}

/* Divider */
.divider {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 1px;
  background: #d1d5db;
  top: 50%;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* =========================
   MESSAGES / NOTIFICATIONS
   ========================= */
.msg-box {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ffffff;
  color: #333;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  border-left: 4px solid gray;
  z-index: 9999;
}

.msg-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.msg-success { border-left-color: #28a745; }
.msg-error { border-left-color: #dc3545; }
.msg-info { border-left-color: #007bff; }

/* =========================
   BRAND LOGO
   ========================= */
.brand {
  position: absolute;
  top: 10px;
  left: 50px;
  z-index: 20;
}

.brand img {
  width: 120px;
  object-fit: contain;
}

/* =========================
   RESPONSIVE
   ========================= */

/* Small devices (max 480px) */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 2rem 1rem;
    border-radius: 12px;
  }

  .form h2 {
    font-size: 22px;
    margin-bottom: 1rem;
  }

  .form input,
  .form button {
    font-size: 14px;
    padding: 12px;
  }

  .msg-box {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    width: 85%;
    text-align: center;
  }

  body::before,
  body::after {
    height: 40%;
  }
}

/* Medium devices (481px–768px) */
@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 2rem 1.5rem;
  }

  body::before,
  body::after {
    height: 50%;
    transform: skewY(-10deg);
  }

  .msg-box {
    max-width: 260px;
    top: 1rem;
    right: 1rem;
  }
}

/* Tablets (769px–1024px) */
@media (max-width: 1024px) {
  .container {
    width: 85%;
    padding: 2.5rem 2rem;
  }

  .form h2 {
    font-size: 24px;
  }
}

/* Large screens (1200px+) */
@media (min-width: 1200px) {
  .container {
    width: 440px;
  }
}

