/* =========================================================
   STC 2026
   REGISTER PAGE
   ========================================================= */

/* ==============================
   REGISTER PAGE
============================== */

.auth-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;

  background: linear-gradient(135deg, #eef6ff 0%, #dceaff 50%, #f8fbff 100%);

  position: relative;
  overflow: hidden;
}

/* ==============================
   BACKGROUND DECORATION
============================== */

.auth-page::before {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  top: -180px;
  left: -180px;

  background: rgba(79, 126, 232, 0.12);

  border-radius: 50%;

  filter: blur(5px);

  pointer-events: none;
}

.auth-page::after {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  right: -150px;
  bottom: -150px;

  background: rgba(124, 185, 232, 0.15);

  border-radius: 50%;

  filter: blur(5px);

  pointer-events: none;
}

/* ==============================
   REGISTER CONTAINER
============================== */

.auth-container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 480px;

  padding: 38px 40px;

  background: rgba(255, 255, 255, 0.94);

  border: 1px solid rgba(124, 185, 232, 0.35);

  border-radius: 24px;

  box-shadow: 0 20px 60px rgba(34, 67, 120, 0.15);

  backdrop-filter: blur(10px);

  animation: registerCardIn 0.7s ease forwards;
}

/* ==============================
   LOGO
============================== */

.auth-logo {
  display: flex;

  justify-content: center;

  margin-bottom: 15px;
}

.auth-logo img {
  display: block;

  width: 95px;
  height: 95px;

  object-fit: contain;

  filter: drop-shadow(0 8px 15px rgba(79, 126, 232, 0.25));

  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* ==============================
   HEADER
============================== */

.auth-header {
  text-align: center;

  margin-bottom: 25px;
}

.auth-kicker {
  display: inline-block;

  margin-bottom: 7px;

  padding: 5px 13px;

  border-radius: 50px;

  background: #e4edff;

  color: #4169d8;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 2px;
}

.auth-header h1 {
  margin: 0 0 6px;

  color: #172554;

  font-size: 30px;
  font-weight: 800;
}

.auth-header p {
  margin: 0;

  color: #64748b;

  font-size: 13px;
}

/* ==============================
   ALERT
============================== */

.alert {
  display: none;

  margin-bottom: 18px;

  padding: 11px 14px;

  border-radius: 10px;

  font-size: 13px;

  line-height: 1.5;
}

.alert.show {
  display: block;
}

.alert.error {
  color: #991b1b;

  background: #fee2e2;

  border: 1px solid #fecaca;
}

.alert.success {
  color: #166534;

  background: #dcfce7;

  border: 1px solid #bbf7d0;
}

/* ==============================
   FORM
============================== */

#registerForm {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: #243b64;

  font-size: 13px;
  font-weight: 600;
}

.form-group label span {
  color: #ef4444;
}

/* ==============================
   INPUT
============================== */

.form-group input {
  display: block;

  width: 100%;

  box-sizing: border-box;

  padding: 12px 15px;

  border: 1px solid #d5e1f2;

  border-radius: 11px;

  outline: none;

  background: #f8fbff;

  color: #1e293b;

  font-family: inherit;
  font-size: 13px;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:hover {
  border-color: #b8cbea;
}

.form-group input:focus {
  border-color: #4f7ee8;

  background: #ffffff;

  box-shadow: 0 0 0 4px rgba(79, 126, 232, 0.12);
}

/* ==============================
   REGISTER BUTTON
============================== */

.btn-auth {
  width: 100%;

  margin-top: 4px;

  padding: 13px 20px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(135deg, #4169d8, #6b91e8);

  color: #ffffff;

  font-family: inherit;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(65, 105, 216, 0.25);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.btn-auth:hover {
  transform: translateY(-2px);

  box-shadow: 0 12px 25px rgba(65, 105, 216, 0.35);

  filter: brightness(1.05);
}

.btn-auth:active {
  transform: translateY(0);
}

/* ==============================
   LOGIN LINK
============================== */

.auth-switch {
  margin: 20px 0 10px;

  text-align: center;

  color: #64748b;

  font-size: 12px;
}

.auth-switch a {
  color: #4169d8;

  font-weight: 700;

  text-decoration: none;

  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: #2448b8;

  text-decoration: underline;
}

/* ==============================
   BACK HOME
============================== */

.back-home {
  display: block;

  text-align: center;

  color: #64748b;

  font-size: 12px;

  text-decoration: none;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.back-home:hover {
  color: #4169d8;

  transform: translateX(-2px);
}

/* ==============================
   REGISTER ANIMATION
============================== */

@keyframes registerCardIn {
  from {
    opacity: 0;

    transform: translateY(25px) scale(0.98);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 600px) {
  .auth-page {
    padding: 25px 15px;
  }

  .auth-container {
    max-width: 100%;

    padding: 30px 24px;

    border-radius: 20px;
  }

  .auth-logo img {
    width: 85px;
    height: 85px;
  }

  .auth-header {
    margin-bottom: 22px;
  }

  .auth-header h1 {
    font-size: 27px;
  }

  .auth-header p {
    font-size: 12px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group input {
    padding: 12px 13px;
  }

  .btn-auth {
    padding: 13px 18px;
  }
}

@media (max-width: 380px) {
  .auth-container {
    padding: 25px 18px;
  }

  .auth-logo img {
    width: 75px;
    height: 75px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-header p {
    font-size: 11px;
  }

  .form-group input {
    padding: 11px 12px;

    font-size: 12px;
  }
}
