/* ==== General Styles ==== */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(120deg, #e0e7ff 0%, #f3f4f6 100%);
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Card */
.container, .role-container {
  background: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo {
  width: 200px;
  margin-bottom: 16px;
  border-radius: 10px;
}

/* Headings */
.welcome-title {
  font-size: 1.15rem;
  color: #666;
  margin-bottom: 3px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
h1, .role-title {
  margin: 10px 0 28px 0;
  font-size: 1.32rem;
  color: #302d3a;
  font-weight: 700;
}

/* Divider */
.divider, .role-divider {
  margin: 18px auto 24px auto;
  border: none;
  height: 1px;
  background-color: #eee;
  width: 80%;
}

/* Inputs (fields) */
input[type="email"], input[type="text"] {
  width: 400px;
  padding: 14px 18px;
  border: 1px solid #d1d5db;
  border-radius: 30px;
  font-size: 1.08rem;
  font-family: inherit;
  background: #f7f8fa;
  box-sizing: border-box;
  margin: 0 0 14px 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 48px;
}
input[type="email"]:focus, input[type="text"]:focus {
  border-color: #f24a8f;
  background: #fff;
  box-shadow: 0 0 4px #f24a8f33;
}

/* ==== Button Styles ==== */

/* Email Button Style & Also Used for Web .btn class */
.btn, button, .role-btn, .login-btn {
  display: inline-block;
  background: #f24a8f;
  color: #fff !important;
  padding: 14px 0;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.08rem;
  text-align: center;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
  box-shadow: 0 2px 10px #f24a8f33;
  border: none;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  cursor: pointer;
  outline: none;
  transition: background 0.25s cubic-bezier(.4,.08,.51,1.03), 
              box-shadow 0.25s, 
              color 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 0.04em;
}

.btn:hover, .btn:focus,
button:hover, button:focus,
.role-btn:hover, .role-btn:focus,
.login-btn:hover, .login-btn:focus {
  background: #ce2576;
  color: #fff !important;
  box-shadow: 0 6px 18px #f24a8f44;
  outline: none;
}

/* Back Button */
.back-btn {
  background: #f3f4f6;
  color: #6246ea;
  border: 1px solid #d1d5db;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 0;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 30px;
  font-size: 1.08rem;
  display: flex;
  letter-spacing: 0.04em;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 2px 10px #e7e7ef22;
  transition: background 0.23s, box-shadow 0.15s, color 0.15s, border 0.15s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.back-btn:hover, .back-btn:focus {
  background: #ece9fd;
  color: #302d3a;
  border: 1px solid #bdbdfa;
  text-decoration: none;
}

/* Icon in Buttons */
.role-btn i, .login-btn i, button i {
  font-size: 1.2em;
  opacity: 0.95;
}

/* Role Choice Group */
.role-choice-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
  width: 100%;
}

/* Role Divider (the "or" line, no grey!) */
.role-divider {
  text-align: center;
  color: #c8c8d0;
  font-size: 0.97em;
  position: relative;
  height: 22px;
  line-height: 22px;
  width: 100%;
  margin: 10px 0 10px 0;
  user-select: none;
  background: transparent;
}
.role-divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
  border: none;
}
.role-divider:before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #eee;
  z-index: 0;
  transform: translateY(-50%);
  background: none;
}

/* Error Message */
.error-message {
  color: #e3342f;
  margin: 2px 0 10px 0;
  font-size: 1rem;
  text-align: center;
  background: #fef2f2;
  padding: 10px 0;
  border-radius: 16px;
  opacity: 1;
  transition: opacity 0.6s;
  border: 1px solid #f5c6cb;
  width: 100%;
  box-sizing: border-box;
  display: block;
}
.error-message.fade-out {
  opacity: 0;
}

/* Footer */
.powered-by {
  font-size: 0.8em;
  color: #b4b4cc;
  margin-top: 40px;
  letter-spacing: 0.1em;
  font-weight: 500;
  user-select: none;
}

/* Mobile */
@media (max-width: 500px) {
  .container, .role-container {
    max-width: 98vw;
    padding: 24px 4vw 20px 4vw;
  }
  .logo { width: 56px; }
  h1, .role-title { font-size: 1.06rem; }
}

.form-fields {
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  margin-bottom: 5px;
}
