 /* Sign In */
:root {
  --brand: #004d40;   /* Dark teal */
  --accent: #00796b;  /* Bright teal */
  --light-bg: #e0f2f1; /* Pale teal for backdrop */
  --radius: 16px;
  --shadow: 0 20px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  font-family: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--light-bg);
  color: #333;
}

/* Main Wrapper */
.signin-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 950px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Left Side */
.welcome-section {
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

.welcome-content {
  text-align: center;
}

.nestaura-logo {
  width: 200px;
  margin-bottom: 2rem;
}

.welcome-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brand);
}

.welcome-section p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #555;
}

/* Teal Circles */
.welcome-section::before,
.welcome-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 121, 107, 0.1);
}
.welcome-section::before {
  width: 180px;
  height: 180px;
  top: 20%;
  left: -50px;
}
.welcome-section::after {
  width: 220px;
  height: 220px;
  bottom: -70px;
  right: -80px;
}

/* Right Side */
.form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.form-container {
  width: 100%;
  max-width: 350px;
}

.form-container h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--brand);
}

.subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Input Groups */
.input-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--brand);
}

/* Remember/Forgot */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.remember-forgot a {
  color: var(--accent);
  text-decoration: none;
}
.remember-forgot a:hover {
  text-decoration: underline;
}

/* Buttons */
.submit-btn, .social-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn {
  background: var(--brand);
  color: #fff;
  margin-bottom: 1rem;
}

.submit-btn:hover {
  background: #00332e;
}

.social-btn {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.social-btn:hover {
  background: rgba(0, 121, 107, 0.08);
}

/* Divider */
.divider {
  text-align: center;
  margin: 1rem 0;
  font-size: 0.8rem;
  color: #aaa;
  position: relative;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #ddd;
  position: absolute;
  top: 50%;
  width: 40%;
}
.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}

/* Sign Up Link */
.signup-link {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  text-align: center;
}

.signup-link a {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}
.signup-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media(max-width: 850px) {
  .signin-wrapper {
    grid-template-columns: 1fr;
  }
  .welcome-section {
    display: none;
  }
}

    /* Back to Home Button */
    .back-home {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background-color: #004d40;
      color: white;
      border: none;
      padding: 10px 18px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.3s ease, transform 0.2s ease;
      position: absolute;
      top: 20px;
      left: 20px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .back-home:hover {
      background-color: white;
      color: #004d40;
      transform: translateX(-3px);
      border: 1px solid #004d40;
    }

    .back-home svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }
 




/* Sign Up */
    :root {
      --brand: #0f3d3d;
      --accent: #00695c;
      --radius: 14px;
      --shadow: 0 20px 60px -10px rgba(0,0,0,0.15);
      --transition: 0.35s cubic-bezier(.4,.2,.2,1);
      font-family: "Inter", system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
    }
    *{box-sizing:border-box;}
    body {
      margin:0;
      min-height:100vh;
      background: linear-gradient(135deg,#f5f7fa 0%,#e8edf1 60%);
      color:#1f2f3f;
      -webkit-font-smoothing:antialiased;
      position: relative;
    }
    /* Styles for the back arrow */
    .back-arrow {
      position: absolute;
      top: 30px;
      left: 30px;
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--brand);
      font-weight: 600;
      font-size: 1rem;
      transition: color var(--transition);
    }
    .back-arrow:hover {
      color: var(--accent);
    }
    .back-arrow svg {
      width: 24px;
      height: 24px;
      fill: currentColor;
      transition: transform var(--transition);
    }
    .back-arrow:hover svg {
      transform: translateX(-4px);
    }

    .page {
      max-width: 1100px;
      margin: 0 auto;
      padding: 60px 20px 120px;
      display: flex;
      flex-direction: column;
      gap: 60px;
    }
    .intro {
      text-align: center;
      padding-bottom: 10px;
    }
    .intro h1 {
      margin:0;
      font-size: 2.4rem;
      letter-spacing: 0.5px;
      font-weight: 600;
      color: var(--brand);
    }
    .intro p {
      margin:10px 0 0;
      font-size: 1rem;
      max-width: 700px;
      margin-left:auto;
      margin-right:auto;
      line-height:1.5;
      color:#4a5568;
    }

    .roles {
      display: grid;
      gap: 30px;
      grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
      grid-auto-flow: column;
      overflow-x: auto;
      padding-bottom: 10px;
    }
    .role-card {
      background:#fff;
      border-radius: var(--radius);
      padding: 25px 20px 30px;
      position: relative;
      overflow:hidden;
      box-shadow: var(--shadow);
      display:flex;
      flex-direction:column;
      gap:12px;
      transition: transform var(--transition);
    }
    .role-card:hover { transform: translateY(-4px); }
    .role-card h2 {
      margin:0;
      font-size:1.2rem;
      display:flex;
      align-items:center;
      gap:6px;
    }
    .role-card p {
      flex:1;
      margin:0;
      font-size:0.95rem;
      line-height:1.4;
      color:#5f6f85;
    }
    .role-card button {
      margin-top: 8px;
      background: linear-gradient(135deg,var(--accent),#00897b);
      border:none;
      color:#fff;
      padding: 12px 16px;
      border-radius:8px;
      cursor:pointer;
      font-weight:600;
      font-size:0.9rem;
      letter-spacing:0.5px;
      transition: filter .25s;

    }
    .role-card button:focus { outline:2px solid rgba(0,105,92,.5); }
    .role-card button:hover { filter:brightness(1.05); }

    .disclaimer {
      font-size:0.8rem;
      color:#718096;
      margin-top: 5px;
    }

    /* Modal */
    .modal-backdrop {
      position: fixed;
      inset:0;
      background: rgba(31,47,63,0.45);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      z-index: 100;
    }
    .modal {
      background:#fff;
      border-radius:18px;
      width:100%;
      max-width: 680px;
      position: relative;
      padding: 30px 35px 40px;
      box-shadow: var(--shadow);
      overflow:auto;
      max-height: 90vh;
      animation: pop .4s ease-out;
    }
    @keyframes pop {
      from { opacity:0; transform: translateY(12px) scale(.97); }
      to { opacity:1; transform: translateY(0) scale(1); }
    }
    .modal-close {
      position:absolute;
      top:14px;
      right:14px;
      background: none;
      border:none;
      font-size:18px;
      cursor:pointer;
      color:#94a3b8;
      padding:6px;
      border-radius:50%;
      transition: background .2s;
    }
    .modal-close:hover { background: rgba(0,0,0,0.05); }

    .form-grid {
      display:grid;
      gap:16px;
      grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    }
    label {
      display:block;
      font-size:0.75rem;
      font-weight:600;
      margin-bottom:6px;
      letter-spacing:0.5px;
      text-transform: uppercase;
      color:#334e68;
    }
    /* Styles for required field asterisk */
    .required-star {
      color: #e53e3e;
      margin-left: 2px;
      font-size: 1rem;
    }
    input, select, textarea {
      width:100%;
      padding:12px 14px;
      border:1px solid #d1d7e0;
      border-radius:8px;
      font-size:1rem;
      background:#f9fbfd;
      transition: border .2s;
    }

    input:focus, select:focus, textarea:focus {
      outline:none;
      border-color: var(--accent);
    }
    /* Styles for the password input container and toggle button */
    .password-input-container {
      position: relative;
    }
    .password-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      display: flex;
      align-items: center;
      color: #94a3b8;
    }
    .password-toggle svg {
      width: 18px;
      height: 18px;
    }
    .password-toggle:hover {
      color: var(--accent);
    }

    .small {
      font-size:0.8rem;
      color:#6b7a99;
    }
    .checkbox-row {
      display:flex;
      align-items:flex-start;
      gap:10px;
      margin-top:8px;
    }
    .checkbox-row input {
      width: auto;
      margin-top:4px;
    }
    .checkbox-row label {
      display:inline;
      text-transform:none;
      font-weight:400;
      margin:0;
    }
    .legal-links {
      display:flex;
      gap:15px;
      flex-wrap:wrap;
      margin-top:6px;
    }
    .legal-links a {
      font-size:0.8rem;
      text-decoration:none;
      color: var(--accent);
      font-weight:600;
    }
    .submit-btn {
      width:100%;
      margin-top:10px;
      background: var(--brand);
      border:none;
      padding:14px;
      border-radius:10px;
      font-size:1rem;
      font-weight:600;
      cursor:pointer;
      color:#fff;
      letter-spacing:0.5px;
      transition: filter .25s;
    }
    .submit-btn:hover { filter:brightness(1.08); }

    .role-tag {
      display:inline-block;
      background: rgba(0,105,92,0.08);
      color: #00695c;
      padding:5px 10px;
      border-radius:999px;
      font-size:0.65rem;
      font-weight:600;
      margin-bottom:8px;
      text-transform:uppercase;
      letter-spacing:1px;
    }
    .links-row {
      text-align:center;
      margin-top:14px;
      font-size:0.9rem;
    }
    .links-row a {
      color: var(--accent);
      text-decoration:none;
      font-weight:600;
    }
    /* Error message styling */
    .error-message {
      color: #e53e3e;
      font-size: 0.85rem;
      margin-top: 5px;
      display: none;
    }
    .error-message.show {
      display: block;
    }
    .modal-message {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #e53e3e;
      color: white;
      padding: 20px;
      border-radius: 8px;
      z-index: 101;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      animation: fadeIn 0.3s ease-out;
    }
    .modal-message.success {
      background: #4CAF50;
    }

    @media (max-width: 880px) {
      .page { padding: 40px 15px 80px; }
      .roles {
        grid-auto-flow: row;
        overflow-x: visible;
        padding-bottom: 0;
      }
      /* Adjust back arrow position for smaller screens */
      .back-arrow {
        top: 20px;
        left: 20px;
      }
    }

/* === Styled Banner === */
#verify-banner {
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
}

#verify-banner.success {
  background-color: #10B981; /* green-500 */
  color: white;
}

#verify-banner.error {
  background-color: #EF4444; /* red-500 */
  color: white;
}

#verify-banner.info {
  background-color: #3B82F6; /* blue-500 */
  color: white;
}

#verify-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -30px);
}

#verify-banner.show {
  opacity: 1;
  transform: translate(-50%, 0);
}