@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #333;
}

.content {
  position: relative;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  height: 40px;
  border-radius: 8px;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.navigation {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-btn {
  padding: 6px 14px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-btn:hover {
  background: #7494ec;
  color: white;
}

.container {
  min-height: 100vh;
  padding: 100px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-login-section {
  max-width: 480px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.welcome-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.welcome-subtitle {
  font-size: 16px;
  margin-bottom: 20px;
}

.main-login-btn {
  padding: 12px 36px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #7494ec, #6884d3);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}
.main-login-btn:hover {
  background: #5773c2;
}

.form-box {
  display: none;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.4s ease;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
}
.form-box.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  line-height: 30px;
}

form h2 {
  margin-top: 10px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 15px;
}

button[type="submit"] {
  width: 100%;
  padding: 13px;
  background: #7494ec;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
button[type="submit"]:hover {
  background: #6884d3;
}

p {
  font-size: 14px;
  text-align: center;
}
p a {
  color: #7494ec;
  text-decoration: none;
}
p a:hover {
  text-decoration: underline;
}

/* ============= MOBILE MEDIA STYLES ============= */
@media screen and (max-width: 600px) {
  .container {
    padding: 110px 15px 40px;
  }
  .main-login-section,
  .form-box {
    padding: 25px 20px;
  }

  .welcome-title {
    font-size: 26px;
  }

  .welcome-subtitle {
    font-size: 14px;
  }

  .main-login-btn {
    font-size: 15px;
  }

  .nav-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}
.features-row {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 35px auto;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
  padding: 30px 22px;
  text-align: center;
  min-width: 200px;
  max-width: 310px;
  flex: 1 1 210px;
  color: #222;
  margin-bottom: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-box:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 8px 22px rgba(116, 148, 236, 0.1);
}
.feature-box h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}
.feature-box p {
  font-size: 14.8px;
  color: #333;
}

@media (max-width: 900px) {
  .features-row {
    flex-direction: column;
    max-width: 95vw;
  }
  .feature-box {
    max-width: 100%;
    margin-bottom: 18px;
  }
}
.footer {
  width: 100%;
  max-width: 800px;
  margin: 28px auto 16px auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(80, 110, 240, 0.08);
  color: #233;
  padding: 28px 18px 10px 18px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-logo {
  height: 42px;
  border-radius: 8px;
  margin-bottom: 2px;
  box-shadow: 0 1px 4px rgba(130, 130, 150, 0.18);
}
.footer-title {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 1px;
}
.footer-tagline {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.footer-links a {
  color: #5773c2;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #233;
  text-decoration: underline;
}

.footer-site-details {
  font-size: 14px;
  color: #444;
  max-width: 520px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 21px;
}
.footer-social span {
  font-size: 14px;
  color: #555;
  margin-right: 5px;
  vertical-align: middle;
}
.footer-social a {
  font-size: 22px;
  transition: transform 0.2s;
  text-decoration: none;
}
.footer-social a:hover {
  transform: scale(1.2) rotate(-8deg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  border-top: 1px solid rgba(200, 220, 255, 0.12);
  margin-top: 10px;
  padding-top: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

/* MOBILE FRIENDLY */
@media (max-width: 700px) {
  .footer {
    max-width: 97vw;
    padding: 16px 7vw 6px 7vw;
  }
  .footer-site-details {
    font-size: 13.3px;
  }
  .footer-title {
    font-size: 18px;
  }
  .footer-logo {
    height: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding-top: 6px;
  }
}
/* The whole row flexes in one line */
.role-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

/* The role label */
.role-label {
  font-weight: 600;
  font-size: 1.08rem;
  margin-right: 1rem;
}

/* Each radio + label pair styles */
.role-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  position: relative;
  /* Optional: add padding for bigger hit area */
  padding: 0.3em 0.8em;
}

/* Hide default radio, create custom */
.role-option input[type="radio"] {
  appearance: none;
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #b9b9b9;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
  transition: border-color 0.2s;
  margin: 0;
  margin-right: 0.35em;
}

/* Show checked state with a colored dot */
.role-option input[type="radio"]:checked {
  border-color: #4f46e5; /* Indigo color (or your theme color) */
}

.role-option input[type="radio"]::before {
  content: "";
  width: 0.58em;
  height: 0.58em;
  border-radius: 50%;
  background: #4f46e5;
  opacity: 0;
  transition: opacity 0.15s;
  margin-left: 0.2em;
}

.role-option input[type="radio"]:checked::before {
  opacity: 1;
}

/* Overall form container */
form, .reset-password-section, .reset-otp-section {
  width: 350px;
  margin: 40px auto;
  padding: 26px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0 20px 0;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  font-size: 15px;
  background-color: #f9f9f9;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #3399ff;
  outline: none;
  background-color: #fff;
}

button {
  width: 100%;
  padding: 13px 0;
  background: #3399ff;
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(51,153,255,0.09);
  transition: background 0.2s;
}
button:hover {
  background: #2277d6;
}

/* Forgot password link */
#forgot-password-link {
  display: block;
  margin: 10px 0 20px 0;
  color: #2277d6;
  text-decoration: none;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
}
#forgot-password-link:hover {
  text-decoration: underline;
}

/* Hide sections by default */
.reset-password-section,
.reset-otp-section {
  display: none;
}

/* Optional: show section when needed (handled by JS) */
/* .reset-password-section.shown, .reset-otp-section.shown { display: block; } */