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

html,
body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Calibri, 'Trebuchet MS', sans-serif;

}


/* Main container with background */
.login-container {
  padding: clamp(20px, 5vh, 60px) 20px;
  width: 100%;
}

/* Main section holding left and right parts */
.login-section {
  display: flex;
  justify-content: space-between;
  align-items: stretch;

  background: linear-gradient(to top right, #dce2e2, #d4eff7);

  border-radius: 10px;
  padding: clamp(20px, 3vw, 40px);
  gap: clamp(20px, 4vw, 60px);

  width: 100%;
  max-width: 1000px;   /* 🔥 improved */
  margin: 0 auto;
  margin-top: -40px; 
}


/* Left side welcome */
.left-side {
  flex: 1.1;
  color: rgb(10, 37, 77);
  font-size: 30px;
  padding: 20px;
  text-align: center;  
  display: flex;              
  flex-direction: column;      
  justify-content: space-between; 
  height: 100%; 
  margin-top: 20px;

}

.left-side p {
  font-size: 32px;
  line-height: 1.4;
  color: rgb(29, 117, 139);
}



.welcome {
  font-weight: 600;
}

.sub-text {
  font-size: 16px;
  opacity: 0.85;
}

.flag-row {
    display: flex;
    flex-direction: column;   /* 🔥 stack vertically */
    align-items: center;      /* center horizontally */
    justify-content: center;

    margin-top: 30px;
}

.flag-icon {
    width: 36px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.flag-text {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(0,0,0,0.7);
}
.trust-points {
  margin-top: 40px;
  display: flex;
  justify-content: center;   /* center horizontally */
  align-items: center;
  flex-wrap: wrap;           /* responsive wrap */
  gap: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
}

.trust-points span {
  background: rgba(255,255,255,0.45);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

/* --- Legal links -------- */
.legal-links {
    margin-top: 30px;
    font-size: 13px;
    color: rgba(70, 71, 71, 0.7);
    
}

.legal-links a {
    color: rgba(70, 71, 71, 0.7);
    text-decoration: none;
    transition: 0.2s ease;
}

.legal-links a:hover {
    color: #00d1b2;
    text-decoration: underline;
}

.legal-links span {
    margin: 0 8px;
    opacity: 0.5;
}


/* Right login form */
.right-side {
  flex: 0.9;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(44, 44, 44, 0.2);
  
}

.right-side h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #016b98;
  font-size: 20px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="submit"] {
  font-family: inherit;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: inset 1px 1px 1px #eee;
}

.right-side input[type="email"] {
  margin-bottom: 10px;
}

input:focus {
  outline: none;
  border: 1px solid #179b81;
  box-shadow: 0 0 5px #00aa88;
}

input[type="submit"] {
  background: rgb(82, 188, 135);
  color: white;
  width: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;

  display: block;          /* 🔥 important */
  margin: 15px auto 0;     /* 🔥 centers horizontally */
}

input[type="submit"]:hover {
  background: rgb(13, 114, 63);
}

form label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 14px;
  display: block;
}

/* Feedback message styling */
form p {
  font-size: 14px;
  margin-top: 10px;
}

/* OTP Stage Styling */
.otp-section {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(44, 44, 44, 0.2);
}

.otp-section p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.otp-section input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: inset 1px 1px 1px #eee;
}

.otp-section input[type="submit"] {
  background: rgb(135, 146, 148);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 20px;
}

.otp-section input[type="submit"]:hover {
  background: rgb(13, 114, 63);
}

.otp-section input:focus {
  outline: none;
  border: 1px solid #179b81;
  box-shadow: 0 0 5px #00aa88;
}


/* message box */

.otp-info {
  margin-top: 8px;
  font-size: 14px;
}

.otp-info.success {
  color: #15803d;
  /* green */
}

.otp-info.error {
  color: #dc2626;
  /* red */
}

.hidden {
  display: none;
}


/* Resend OTP button */
.resend-otp {
  margin-top: 12px;
  padding: 6px 10px;
  background-color: #1da973;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.resend-otp:hover {
  background-color: #127851;
}



/* Login again link styled as button */
.login-again {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  margin-left: 14px;
  float: right;
  font-size: 13px;
  color: #5f57ee;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.login-again::before {  
  font-size: 14px;
}

.login-again:hover {
  color: #3730a3;
  transform: translateX(-2px);
}

/* --- signup button ---- */
.auth-links {
  margin-top: 35px;
  font-size: 13px;
  color: #6b7280;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;   /* 🔥 THIS controls spacing */
}

.auth-links a {
  text-decoration: none;
  font-weight: 500;
}

.forgot-link {
  color: #4f46e5;
}

.signup-link {
  color: #4f46e5;
}

.auth-links a:hover {
  text-decoration: underline;
  color: #3730a3;
}

.divider {
  margin: 0 8px;
  color: #9ca3af;
  
}
.signup-text {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.signup-link {
  color: #4f46e5;
  font-weight: 500;
  text-decoration: none;
  margin-left: 4px;
}

.signup-link:hover {
  text-decoration: underline;
  color: #3730a3;
}

/* ====== new password set === */
.password-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    margin: 10px 0 15px;
    font-size: 12px;
    line-height: 1.6;
}

.password-rules div {
    white-space: nowrap;
    color: #64748b;
    transition: all 0.2s ease;
}

.password-match-rule {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.password-rules .valid,
.password-match-rule.valid {
    color: #16a34a;
    font-weight: 600;
}

/* ====  login page disable  */
input:disabled {
  background: linear-gradient(to bottom,
      #e2e6e8,
      #cfd6d9);
  color: #6b7280;
  /* soft slate text */
  border: 1px solid #a8b3b8;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.08);
  cursor: not-allowed;
}

input[type="submit"]:disabled {
  background: linear-gradient(to right,
      #8fa9a1,
      #6f8f87);
  color: #eef2f3;
  border: 1px solid #6b8c84;
  cursor: not-allowed;
  opacity: 0.9;
}


/* animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}



/* =========== password eye toggle =========== */

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 35px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-30%);
  cursor: pointer;
  color: #888;
}

.toggle-password:hover {
  color: #333;
}

/* message boxes */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  width: 90%;
  max-width: 450px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}


/* ====== messages */
.inline-message {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* Success */
.inline-message.success {
  background-color: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
}

/* Error */
.inline-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

/* Warning */
.inline-message.warning {
  background-color: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

/* -----------------------------
   🔘 BUTTON STYLES
------------------------------ */
.btn.btn-primary {
  background-color: #19867b;
  color: #fff;
  padding: 0.2rem 0.8rem;
  border: none;
  border-radius: 2px;
  font-weight: 300;
  font-size: 0.6rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn.btn-primary:hover {
  background-color: #29a499;
}

.btn.btn-secondary {
  background-color: #4b93ab;
  color: #fff;
  padding: 0.2rem 0.8rem;
  border: none;
  border-radius: 2px;
  font-weight: 300;
  font-size: 0.6rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn.btn-secondary:hover {
  background-color: #2d697c;
}

.btn.btn-tertiary {
  background-color: #e61919;
  color: #ffff;
  padding: 0.2rem 0.8rem;
  border: none;
  border-radius: 2px;
  font-weight: 300;
  font-size: 0.6rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn.btn-tertiary:hover {
  background-color: #c91414;

}

/* ====== forgot password link ==== */
.forgot-password {
  text-align: right;
  margin-top: 8px;
}

.forgot-password a {
  font-size: 13px;
  color: #8e8f8e;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.forgot-password a:hover {
  text-decoration: underline;
  color: #2E7D32;
}

.forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    margin-bottom: 16px;
}

.forgot-password-row .forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.forgot-password-row .forgot-link:hover {
    text-decoration: underline;
}

/* ======= reset password======== */
.activation-banner {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 5px;
    text-align: center;
}

.activation-icon {
    font-size: 15px;
    margin-bottom: 8px;
}

.activation-banner h3 {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 20px;
    font-weight: 600;
}

.activation-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.activation-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-top: 10px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.step-item.active {
    color: #2563eb;
    font-weight: 600;
}

.password-help {
    margin-top: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #64748b;
}

.resend-wrapper{
    text-align:center;
    margin-top:20px;
    font-size:12px;
}

.resend-text{
    color:#6b7280;
    margin-right:4px;
}

.resend-btn{
    font-family: inherit;
    background:none;
    border:none;
    padding:0;
    color:#2563eb;
    text-decoration:none;
    cursor:pointer;
    font-size:12px;
    font-weight:500;
}

.resend-btn:hover{
    color:#1d4ed8;
    text-decoration:underline;
}

/* =========================================
   🌐 RESPONSIVE SYSTEM (FINAL CLEAN VERSION)
========================================= */


/* 💻 Large screens (≥1400px) */
@media (min-width: 1400px) {

  .login-section {
    max-width: 1200px;
    padding: 40px;
    gap: 60px;
  }

  .left-side {
    font-size: 32px;
  }

  .right-side h1 {
    font-size: 28px;
  }
}


/* 💻 Laptops (≤1200px) */
@media (max-width: 1200px) {

  .login-section {
    max-width: 900px;
    padding: 30px;
    gap: 40px;
  }

  .left-side {
    font-size: 24px;
  }
}


/* 📱 Tablets (≤992px) */
@media (max-width: 992px) {

  .login-section {
    flex-direction: column;      /* 🔥 stack earlier */
    max-width: 500px;
    width: 100%;                 /* 🔥 fix centering */
    margin: 0 auto;
    gap: 25px;
  }

  .left-side {
    margin-top: 0;
    font-size: 20px;
  }

  .right-side h1 {
    font-size: 22px;
  }
}


/* 📱 Mobile (≤768px) */
@media (max-width: 768px) {

  .login-container {
    padding: 20px;
  }

  .login-section {
    max-width: 100%;
    padding: 20px;
    border-radius: 16px;
  }

  .left-side {
    font-size: 18px;
    padding: 0;
  }

  .left-side p {
    font-size: 18px;
  }

  .right-side {
    padding: 16px;
  }

  .right-side h1 {
    font-size: 20px;
  }

  input {
    font-size: 14px;
  }

  input[type="submit"] {
    width: 100%;   /* 🔥 FIX: full width button */
  }
}


/* 📱 Small phones (≤480px) */
@media (max-width: 480px) {

  .login-container {
    padding: 16px;
  }

  .login-section {
    padding: 16px;
    border-radius: 12px;
  }

  .left-side {
    font-size: 16px;
  }

  .right-side h1 {
    font-size: 18px;
  }

  form label {
    font-size: 13px;
  }

  input {
    font-size: 13px;
    padding: 8px;
  }

  .resend-otp,
  .login-again {
    width: 100%;
    text-align: center;
  }
}