:root {
  --primary-color: #0f6b2f;
  --primary-hover: #0a4d21;
  --bg-dark: #111111; 
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --radius-input: 0.5rem;
  --radius-card: 1rem;
  --font-family: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: white; 
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

.signup-container {
  background-color: var(--card-bg);
  width: 100%;
  max-width: 430px; 
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo {
  max-width: 150px;
  height: auto;
}

.back-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.back-btn:hover {
  color: var(--primary-color);
}

.back-btn svg {
  width: 24px;
  height: 24px;
}

h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  margin-left: 0.25rem;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
#student-id, 
#password, 
#Confirmpassword {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-input);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-register {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 0.875rem;
  border: none;
  border-radius: var(--radius-input);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 6px -1px rgba(15, 107, 47, 0.2);
}

.btn-register:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 8px -1px rgba(15, 107, 47, 0.3);
}

.btn-register:active {
  transform: scale(0.99);
}

.btn-cancel {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.875rem;
  border-radius: var(--radius-input);
  cursor: pointer;
  font-weight: 500;
  flex: 0 0 30%;
}

.btn-cancel:hover {
  background-color: #f3f4f6;
  color: var(--text-main);
}

.footer-link {
  text-align: center;
  margin-top: 1.5rem;
}

.footer-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-link a:hover {
  text-decoration: underline;
}

.password-wrapper { 
  position: relative; 
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  z-index: 10;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--primary-color);
}

.toggle-password svg {
  width: 18px; 
  height: 18px;
  pointer-events: none; 
}

.password-wrapper input {
  padding-right: 3rem;
}

.error-message {
  color: red;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.custom-scrollbar::-webkit-scrollbar { 
  width: 6px; 
}

.custom-scrollbar::-webkit-scrollbar-track { 
  background: #f1f1f1; 
}

.custom-scrollbar::-webkit-scrollbar-thumb { 
  background: var(--primary-color); 
  border-radius: 4px; 
}

.spacer {
  height: 0.5rem;
}

.login-link-container {
  margin-top: 1rem;
}