/* Reset some default browser styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: linear-gradient(to bottom, #e6f2eb, #f9fafb 70%);
  color: #1f2937; /* gray-800 */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.signin-wrapper {
  background: white;
  padding: 40px 40px 48px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  width: 600px;
  max-width: 95vw;
  text-align: center;
}

.signin-form h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #111827; /* gray-900 */
}

.subheading {
  font-weight: 400;
  font-size: 14px;
  color: #6b7280; /* gray-500 */
  margin: 8px 0 24px;
}

/* Role Selection */
.role-selection {
  border: none;
  margin-bottom: 24px;
  text-align: left;
}

.role-selection legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #374151; /* gray-700 */
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s ease;
  background-color: #fafafa;
}

.radio-label:hover {
  border-color: #10b981; /* emerald-500 */
  background-color: #e6f6ef;
}

.radio-label input[type="radio"] {
  accent-color: #10b981;
  cursor: pointer;
}

/* Icon inside radio */
.radio-label .icon {
  font-size: 18px;
  color: #10b981;
}

/* Input fields */
label[for="email"],
label[for="password"] {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
  text-align: left;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #10b981;
  outline: none;
  background-color: #f0fdf9;
}

/* Sign in button */
button#signin-button {
  width: 100%;
  background-color: #10b981; /* emerald-500 */
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 16px;
}

button#signin-button:hover {
  background-color: #0f9e74;
}

/* Links */
.forgot-password-link {
  display: block;
  font-size: 14px;
  color: #10b981;
  text-decoration: none;
  margin-bottom: 24px;
  transition: text-decoration 0.3s ease;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.signup-text {
  font-weight: 400;
  font-size: 14px;
  color: #374151;
}

.signup-link {
  font-weight: 700;
  color: #10b981;
  text-decoration: none;
  cursor: pointer;
  transition: text-decoration 0.3s ease;
}

.signup-link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 20px;
    height: auto;
    min-height: 100vh;
  }

  .signin-wrapper {
    padding: 30px 20px;
    width: 100%;
    max-width: 100%;
  }

  .signin-form h1 {
    font-size: 20px;
  }

  .subheading {
    font-size: 13px;
  }

  .radio-label {
    font-size: 14px;
    padding: 8px 12px;
  }

  input[type="email"],
  input[type="password"] {
    padding: 10px 12px;
    font-size: 14px;
  }

  button#signin-button {
    padding: 12px 0;
    font-size: 15px;
  }

  .forgot-password-link {
    font-size: 13px;
  }

  .signup-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .signin-wrapper {
    padding: 20px 15px;
  }

  .signin-form h1 {
    font-size: 18px;
  }

  .radio-label {
    font-size: 13px;
    padding: 6px 10px;
  }

  input[type="email"],
  input[type="password"] {
    padding: 8px 10px;
    font-size: 13px;
  }

  button#signin-button {
    padding: 10px 0;
    font-size: 14px;
  }
}
