:root {
  --primary: #e52e02;
  --primary-hover: #aa1c00;
  --text-dark: #7c1400;
  --default-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* Additional Palette Variables */
  --light-bg: #fff4f3;
}

/* ============================= */
/* INTER FONT INTEGRATION        */
/* ============================= */
@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp5SRlDa7mv1A9K6m7Q.woff2') format('woff2');
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp5SRlDa7mv1A9K6m7Q.woff2') format('woff2');
    font-weight: 700; /* Bold */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp5SRlDa7mv1A9K6m7Q.woff2') format('woff2');
    font-weight: 900; /* Heavy */
    font-style: normal;
    font-display: swap;
}

/* ============================= */
/* GLOBAL BASE STYLE             */
/* ============================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--default-font-family);
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

/* ============================= */
/* BANNER IMAGE WRAPPER          */
/* ============================= */
.pic-wrapper {
    width: 100%;
    min-height: 380px; /* Keeps consistent height with the login panel fix */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('../assets/images/loginsignupphone-04.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom; /* Anchor to bottom to reveal full circle emblem */
}

.TSH-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.TSHpic {
  width: 220px;
  max-width: 70%;
  height: auto;
  display: block;
}

.right-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
}

/* ============================= */
/* FORM STRUCTURE & TIERS        */
/* ============================= */
.form-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 25px auto 40px auto;
}

.signup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 35px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(124, 20, 0, 0.08);
  background: var(--light-bg);
  box-sizing: border-box;
  border: 1px solid #f0d5d2;
}

.signup-form h2 {
  font-family: var(--default-font-family);
  font-weight: 900;
  font-size: 26px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.signup-form p {
  font-family: var(--default-font-family);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 15px;
  margin-top: 0;
}

/* INPUT COMPONENT CONTROLS */
.signup-form input {
  width: 100%;
  padding: 0 15px;
  height: 48px;
  font-size: 14px;
  border: 1px solid #f0d5d2;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-family: var(--default-font-family);
  margin-bottom: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(229, 46, 2, 0.1);
}

/* NAME ROW CONTAINER */
.name-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
}

.name-wrapper input {
  flex: 1;
}

/* PASSWORD INTERFACES */
.password-wrapper, 
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper input,
.input-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.password-wrapper i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
  font-size: 16px;
  padding: 4px;
  z-index: 5;
}

.password-wrapper i:hover {
  color: var(--text-dark);
}

/* PRIMARY SUBMIT BUTTONS */
.signup-form button {
  width: 100%;  
  height: 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: var(--primary-hover);
  color: #fff;
  cursor: pointer;
  font-family: var(--default-font-family);
  transition: background 0.2s, transform 0.1s;
}

.signup-form button:hover {
  background: var(--primary);
  transform: none;
}

.signup-form button:active {
  transform: scale(0.99);
}

.step2-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
}

.back-btn {
    background: #e4e4e4 !important;
    color: #333 !important;
}
.back-btn:hover {
    background: #d5d5d5 !important;
}

.next-btn:disabled {
    background: #aaa !important;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================= */
/* MODULE STATIONS & UTILS       */
/* ============================= */
.profile-pic {
  width: 140px;
  height: 140px;
  margin: 5px auto 20px auto;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: url('https://via.placeholder.com/180') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 20, 0, 0.12);
}

.profile-pic input {
  display: none;
}

.profile-pic label {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  background: rgba(229, 46, 2, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.requirements {
  font-size: 12px;
  padding-left: 0;
  list-style: none;
  margin: 4px 0 8px 0;
}

.requirements li {
    display: none; 
    font-size: 12px;
    color: #aa1c00;
    font-weight: 500;
}
.requirements li.invalid {
    display: block; 
}

.feedback {
    font-size: 13px;
    color: #aa1c00;
    margin: 4px 0;
    font-weight: 500;
    text-align: center;
    display: none; 
}
.feedback.show {
    display: block; 
}

/* LINKS */
.haa {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 20px;
}

.logint {
  color: var(--primary-hover);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.logint:hover {
  text-decoration: underline;
  color: var(--primary);
}

.signupt {
    display: inline;       
    font-weight: 700;
    font-family: var(--default-font-family);
    color: var(--primary-hover);       
    text-decoration: underline;
    font-size: 14px;
}
.dhc {
    text-align: center;   
    font-weight: 400;
    font-family: var(--default-font-family);
    color: #555;       
    font-size: 14px;
    margin-top: 20px;
}

/* STEP INDICATORS */
.step { display: none; }
.step.active { display: block; }

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-indicator span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-indicator span.active {
  background: var(--primary);
  color: #fff;
}

/* LOADING UTILS */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkmark {
    font-size: 48px;
    color: green;
    text-align: center;
    margin: 20px auto;
}

.otp-box { 
  width: 44px !important; 
  text-align: center; 
  font-size: 18px; 
  margin-right: 6px; 
  display: inline-block;
}
.resend-link { 
  cursor: pointer; 
  color: var(--primary-hover); 
  text-decoration: underline; 
  font-weight: 600;
}

.resend-link:hover {
  color: var(--primary);
}

/* ==========================================
   MOBILE PHONES (up to 599px)
========================================== */
@media screen and (max-width: 599px) {
    .main-container {
        flex-direction: column;
        justify-content: flex-start;
    }

    .pic-wrapper {
        width: 100%;
        min-height: 250px; 
        background-position: center bottom;
    }

    .right-container {
        width: 100%;
        padding: 10px;
    }

    .TSH-wrapper {
        margin: 10px 0 0 0;
    }

    .TSHpic {
        width: 160px;
    }

    .form-wrapper {
        margin: 5px auto 30px auto;
        padding: 0 12px;
    }

    .signup-form {
        padding: 30px 20px;
        box-shadow: 0 8px 24px rgba(124, 20, 0, 0.06);
        border: 1px solid #f0d5d2;
    }

    .signup-form h2 {
        font-size: 24px;
    }
}

/* ==========================================
   TABLETS (600px to 1019px)
========================================== */
@media screen and (min-width: 600px) and (max-width: 1019px) {
    .pic-wrapper {
        min-height: 300px;
        background-image: url('../assets/images/loginsignuptablet-05.png');
    }

    .TSHpic {
        width: 180px;
    }

    .form-wrapper {
        max-width: 450px;
    }
}

/* ============================= */
/* DESKTOP DESIGNS               */
/* ============================= */
@media screen and (min-width: 1020px) {
  .main-container {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }

  .pic-wrapper {
    width: 50%;
    height: 100%;
    min-height: 100vh;
    background-image: url('../assets/images/loginsignup-03.png');
    background-position: center center;
  }

  .right-container {
    width: 50%;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
  }

  .TSH-wrapper {
    margin: 0 0 25px 0;
  }

  .TSHpic {
    width: 190px;
  }

  .form-wrapper {
    max-width: 440px;
  }

  .signup-form {
    padding: 35px 30px;
    box-shadow: 0 10px 35px rgba(124, 20, 0, 0.08);
  }
}