@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Public Sans', Arial, sans-serif;
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2a40 0%, #143a5c 40%, #1a4a6e 100%);
  -webkit-font-smoothing: antialiased;
}

html.swal2-shown,
body.swal2-shown {
  overflow-y: scroll !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
}

.swal2-container {
  position: fixed !important;
}

/* ═══════════════ LEFT PANEL ═══════════════ */
.left {
  width: 55%;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
}

.about-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
}

.about-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

h1 {
  font-size: 52px;
  color: #ffffff;
  font-family: 'Public Sans', sans-serif;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 0 0 16px 0;
}

.tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  max-width: 480px;
}

.footer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.40);
  font-weight: 400;
}

/* ═══════════════ RIGHT PANEL ═══════════════ */
.right {
  width: 45%;
  background-color: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 30px 0;
  box-sizing: border-box;
  border-radius: 22px 0 0 22px;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

/* ═══════════════ FORM BOX ═══════════════ */
.form-box {
  width: 380px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 22px;
  padding: 36px 32px 30px;
  box-sizing: border-box;
  color: #143a5c;
  background-color: #e2eff9;
  box-shadow: 0 4px 18px rgba(20, 58, 92, 0.12);
  border: 1px solid rgba(20, 58, 92, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardRise 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-box > *:not(.logo) {
  width: 100%;
}

.form-box::-webkit-scrollbar {
  width: 4px;
}
.form-box::-webkit-scrollbar-thumb {
  background: #aac4d8;
  border-radius: 4px;
}

.logo {
  display: block;
  margin: 0 auto 22px;
  width: 100px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

h2 {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #143a5c;
  margin: 0 0 6px 0;
  flex-shrink: 0;
  letter-spacing: -0.3px;
  font-family: 'Public Sans', sans-serif;
}

.note {
  text-align: center;
  font-size: 13px;
  color: #4a7090;
  margin-bottom: 24px;
  flex-shrink: 0;
  line-height: 1.5;
  font-weight: 400;
}

.note a {
  color: #1e5080;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.note a:hover {
  color: #143a5c;
  text-decoration: underline;
}

label {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
  color: #2d5a7a;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Public Sans', sans-serif;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(20, 58, 92, 0.22);
  background-color: rgba(255, 255, 255, 0.72);
  box-sizing: border-box;
  font-size: 14px;
  font-family: 'Public Sans', sans-serif;
  color: #143a5c;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-weight: 400;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #7fa8c4;
  font-weight: 400;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #143a5c;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 58, 92, 0.12);
}

#verification-code-input,
#forgot-code-input {
  text-align: center;
  font-size: 22px;
  letter-spacing: 8px;
  font-weight: 600;
  color: #143a5c;
}

select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(20, 58, 92, 0.22);
  background-color: rgba(255, 255, 255, 0.72);
  box-sizing: border-box;
  font-size: 14px;
  font-family: 'Public Sans', sans-serif;
  color: #143a5c;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a7090' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-weight: 400;
}

select:focus {
  border-color: #143a5c;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 58, 92, 0.12);
}

button {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background-color: #143a5c;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  font-family: 'Public Sans', sans-serif;
  letter-spacing: 0.02em;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(20, 58, 92, 0.28);
}

button:hover {
  background-color: #1e5080;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 58, 92, 0.34);
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#verification-section button {
  margin-bottom: 8px;
}

#verification-section button:first-of-type {
  background-color: #276749;
}

#verification-section button:first-of-type:hover {
  background-color: #1a5c3a;
  box-shadow: 0 6px 20px rgba(39, 103, 73, 0.34);
}

#verification-section button:nth-of-type(2) {
  background-color: #2b6498;
}

#verification-section button:nth-of-type(2):hover {
  background-color: #1e5080;
}

#verification-section button:nth-of-type(3) {
  background-color: rgba(20, 58, 92, 0.12);
  color: #4a7090;
  box-shadow: none;
  border: 1.5px solid rgba(20, 58, 92, 0.22);
}

#verification-section button:nth-of-type(3):hover {
  background-color: rgba(20, 58, 92, 0.18);
  color: #143a5c;
  transform: translateY(-1px);
}

#forgot-password-section button:last-of-type,
#forgot-verification-section button:last-of-type,
#reset-password-section button:last-of-type {
  background-color: rgba(20, 58, 92, 0.12);
  color: #4a7090;
  box-shadow: none;
  border: 1.5px solid rgba(20, 58, 92, 0.22);
}

#forgot-password-section button:last-of-type:hover,
#forgot-verification-section button:last-of-type:hover,
#reset-password-section button:last-of-type:hover {
  background-color: rgba(20, 58, 92, 0.18);
  color: #143a5c;
  transform: translateY(-1px);
}

.Forgot-Pass {
  text-align: center;
  margin-top: 14px;
}

.Forgot-Pass a {
  color: #1e5080;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.Forgot-Pass a:hover {
  color: #143a5c;
  text-decoration: underline;
}

/* ═══════════════ PASSWORD REQUIREMENTS ═══════════════ */
.password-requirements {
  display: block;
  margin-top: -8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(226, 239, 249, 0.50);
  border-radius: 10px;
  border: 1px solid rgba(20, 58, 92, 0.15);
}

.password-requirements .req {
  font-size: 11.5px;
  color: #4a7090;
  margin: 3px 0;
  padding-left: 0;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}

/* ═══════════════ INPUT ERROR ═══════════════ */
input.input-error {
  border: 1.5px solid #e53e3e !important;
  background-color: #fff5f5 !important;
}

.verification-error {
  color: #e53e3e;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
}

.verification-success {
  color: #276749;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
}

/* ═══════════════ RECOMMENDATION CHECKBOX ═══════════════ */
.recommendation-checkbox-div {
  margin-top: 10px;
  margin-bottom: 6px;
  padding: 12px 14px;
  background: rgba(226, 239, 249, 0.50);
  border-radius: 10px;
  border: 1px solid rgba(20, 58, 92, 0.15);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #143a5c;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: #143a5c;
  cursor: pointer;
  margin: 0;
}

.rec-general-note {
  font-size: 11.5px;
  color: #4a7090;
  margin: 8px 0 0 0;
  line-height: 1.5;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

p {
  text-align: left;
  font-size: 12px;
  color: #4a7090;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .left {
    width: 50%;
    padding: 30px 40px;
  }
  
  .right {
    width: 50%;
  }
  
  h1 {
    font-size: 40px;
  }
  
  .form-box {
    width: 340px;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }

  .left {
    width: 100%;
    padding: 30px 28px;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
  }
  
  h1 {
    font-size: 36px;
    text-align: center;
  }
  
  .tagline {
    text-align: center;
    max-width: 100%;
  }

  .right {
    width: 100%;
    padding: 24px 0 48px;
    border-radius: 22px 22px 0 0;
  }

  .form-box {
    width: 92%;
    max-width: 380px;
    max-height: unset;
  }

  #verification-code-input,
  #forgot-code-input {
    font-size: 18px;
    letter-spacing: 5px;
  }
}

@media (max-width: 480px) {
  .left {
    padding: 24px 20px;
  }
  
  h1 {
    font-size: 30px;
  }
  
  .form-box {
    padding: 28px 20px 24px;
  }
}