/* =========================================================
           RESET
        ========================================================= */

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

html,
body {
  width: 100%;
  min-height: 100%;
}

/* =========================================================
           BODY
        ========================================================= */

body {
  font-family: "Poppins", sans-serif;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 220, 190, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #0f172a 0%, #172554 45%, #164e63 100%);

  min-height: 100vh;

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

  padding: 30px;

  overflow-x: hidden;

  position: relative;
}

/* =========================================================
           BACKGROUND DECORATION
        ========================================================= */

.background-shape {
  position: fixed;

  border-radius: 50%;

  pointer-events: none;

  z-index: 0;
}

.shape-one {
  width: 320px;
  height: 320px;

  top: -130px;
  left: -100px;

  background: rgba(59, 130, 246, 0.18);
}

.shape-two {
  width: 400px;
  height: 400px;

  right: -180px;
  bottom: -180px;

  background: rgba(20, 184, 166, 0.16);
}

.shape-three {
  width: 140px;
  height: 140px;

  right: 18%;
  top: 8%;

  background: rgba(255, 255, 255, 0.05);
}

/* =========================================================
           RESET WRAPPER
        ========================================================= */

.reset-wrapper {
  width: 100%;

  max-width: 980px;

  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns: 1fr 1fr;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(22px);

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

  border-radius: 28px;

  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  animation: resetAppear 0.7s ease forwards;
}

/* =========================================================
           LEFT BRAND PANEL
        ========================================================= */

.brand-panel {
  position: relative;

  padding: 55px 50px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  min-height: 570px;

  background: linear-gradient(
    145deg,
    rgba(30, 64, 175, 0.72),
    rgba(13, 148, 136, 0.58)
  );
}

.brand-panel::before {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  border-radius: 50%;

  right: -120px;
  top: -90px;

  background: rgba(255, 255, 255, 0.07);
}

.brand-panel::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  left: -120px;
  bottom: -100px;

  background: rgba(255, 255, 255, 0.05);
}

.brand-content {
  position: relative;

  z-index: 2;
}

/* =========================================================
           LOGO
        ========================================================= */

.logo-container {
  width: 82px;
  height: 82px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.95);

  display: flex;

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

  padding: 12px;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.16);

  margin-bottom: 28px;
}

.logo-container img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* =========================================================
           BRAND TITLE
        ========================================================= */

.brand-title {
  color: #fff;

  font-size: 42px;

  font-weight: 700;

  letter-spacing: -1.5px;

  margin-bottom: 12px;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.84);

  font-size: 15px;

  line-height: 1.8;

  max-width: 400px;
}

/* =========================================================
           FEATURE
        ========================================================= */

.feature-list {
  margin-top: 38px;

  display: flex;

  flex-direction: column;

  gap: 15px;
}

.feature-item {
  display: flex;

  align-items: center;

  gap: 12px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 13px;
}

.feature-icon {
  width: 32px;
  height: 32px;

  border-radius: 10px;

  display: flex;

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

  background: rgba(255, 255, 255, 0.12);

  color: #fff;

  flex-shrink: 0;
}

/* =========================================================
           BRAND FOOTER
        ========================================================= */

.brand-footer {
  position: relative;

  z-index: 2;

  color: rgba(255, 255, 255, 0.55);

  font-size: 11px;
}

/* =========================================================
           RESET PANEL
        ========================================================= */

.reset-panel {
  background: rgba(255, 255, 255, 0.94);

  padding: 55px 50px;

  display: flex;

  align-items: center;

  min-height: 570px;
}

.reset-content {
  width: 100%;
}

/* =========================================================
           HEADER
        ========================================================= */

.reset-header {
  margin-bottom: 30px;
}

.reset-icon {
  width: 56px;
  height: 56px;

  border-radius: 16px;

  display: flex;

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

  background: rgba(37, 99, 235, 0.09);

  color: #2563eb;

  font-size: 24px;

  margin-bottom: 20px;
}

.reset-header h4 {
  color: #0f172a;

  font-size: 28px;

  font-weight: 700;

  letter-spacing: -0.7px;

  margin-bottom: 8px;
}

.reset-header p {
  color: #64748b;

  font-size: 13px;

  line-height: 1.7;

  margin: 0;

  max-width: 390px;
}

/* =========================================================
           FORM
        ========================================================= */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  color: #334155;

  font-size: 13px;

  font-weight: 600;

  margin-bottom: 8px;
}

/* =========================================================
           INPUT
        ========================================================= */

.custom-input-group {
  position: relative;

  display: flex;

  align-items: center;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  border-radius: 13px;

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

.custom-input-group:focus-within {
  background: #fff;

  border-color: #2563eb;

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.09);
}

.input-icon {
  width: 50px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #64748b;

  font-size: 17px;

  flex-shrink: 0;
}

.custom-input {
  width: 100%;

  height: 54px;

  border: none;

  outline: none;

  background: transparent;

  color: #0f172a;

  font-family: "Poppins", sans-serif;

  font-size: 13px;

  padding: 0 15px 0 0;
}

.custom-input::placeholder {
  color: #94a3b8;
}

/* =========================================================
           RESET BUTTON
        ========================================================= */

.reset-button {
  width: 100%;

  height: 54px;

  border: none;

  border-radius: 13px;

  background: linear-gradient(135deg, #1d4ed8, #2563eb);

  color: #fff;

  font-family: "Poppins", sans-serif;

  font-size: 13px;

  font-weight: 600;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  margin-top: 8px;

  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.reset-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.reset-button:active {
  transform: translateY(0);
}

.reset-button:disabled {
  opacity: 0.7;

  cursor: not-allowed;

  transform: none;
}

/* =========================================================
           BACK TO LOGIN
        ========================================================= */

.back-login {
  text-align: center;

  margin-top: 23px;
}

.back-login a {
  color: #2563eb;

  font-size: 12px;

  font-weight: 500;

  text-decoration: none;

  transition: color 0.2s ease;
}

.back-login a:hover {
  color: #1d4ed8;

  text-decoration: underline;
}

/* =========================================================
           SECURITY NOTE
        ========================================================= */

.security-note {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 7px;

  color: #94a3b8;

  font-size: 10px;

  margin-top: 28px;
}

.security-note i {
  color: #10b981;
}

/* =========================================================
           ANIMATION
        ========================================================= */

@keyframes resetAppear {
  from {
    opacity: 0;

    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

/* =========================================================
           TABLET
        ========================================================= */

@media (max-width: 900px) {
  body {
    padding: 20px;
  }

  .reset-wrapper {
    max-width: 760px;

    grid-template-columns: 0.85fr 1fr;
  }

  .brand-panel {
    padding: 42px 35px;

    min-height: 530px;
  }

  .reset-panel {
    padding: 42px 35px;

    min-height: 530px;
  }

  .brand-title {
    font-size: 34px;
  }
}

/* =========================================================
           MOBILE
        ========================================================= */

@media (max-width: 700px) {
  body {
    padding: 16px;

    align-items: center;

    overflow-y: auto;
  }

  .reset-wrapper {
    display: block;

    max-width: 450px;

    border-radius: 22px;
  }

  .brand-panel {
    min-height: auto;

    padding: 30px 25px;

    text-align: center;

    background: linear-gradient(
      145deg,
      rgba(30, 64, 175, 0.9),
      rgba(13, 148, 136, 0.8)
    );
  }

  .brand-panel::before,
  .brand-panel::after {
    display: none;
  }

  .brand-content {
    display: flex;

    flex-direction: column;

    align-items: center;
  }

  .logo-container {
    width: 68px;

    height: 68px;

    border-radius: 18px;

    padding: 10px;

    margin-bottom: 17px;
  }

  .brand-title {
    font-size: 28px;

    letter-spacing: -0.8px;

    margin-bottom: 6px;
  }

  .brand-subtitle {
    font-size: 11px;

    line-height: 1.6;

    max-width: 310px;
  }

  .feature-list {
    display: none;
  }

  .brand-footer {
    display: none;
  }

  .reset-panel {
    min-height: auto;

    padding: 30px 25px;
  }

  .reset-header {
    margin-bottom: 24px;
  }

  .reset-icon {
    width: 50px;

    height: 50px;

    border-radius: 14px;

    font-size: 21px;

    margin-bottom: 16px;
  }

  .reset-header h4 {
    font-size: 23px;
  }

  .reset-header p {
    font-size: 11px;
  }
}

/* =========================================================
           SMALL MOBILE
        ========================================================= */

@media (max-width: 380px) {
  body {
    padding: 10px;
  }

  .reset-wrapper {
    border-radius: 18px;
  }

  .brand-panel {
    padding: 24px 20px;
  }

  .reset-panel {
    padding: 25px 20px;
  }

  .reset-header h4 {
    font-size: 21px;
  }

  .custom-input,
  .reset-button {
    height: 50px;
  }
}

/* =========================================================
           REDUCED MOTION
        ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .reset-wrapper {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
