:root {
  --primary-color: #0d6efd;
  --primary-hover: #0b5ed7;
  --danger-color: #dc3545;
  --background-color: #f5f5f5;
  --card-bg: #ffffff;
  --border-radius: 6px;
  --input-padding: 0.5rem 0.75rem;
  --input-border: 1px solid #ccc;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* General Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: #333;
}

/* Layout Wrapper */
.register-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

/* Card Container */
.register-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 400px;
  width: 100%;
}

.register-card h1 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  padding: var(--input-padding);
  border: var(--input-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.password-group {
        position: relative;  /* Needed for absolute positioning of child elements */
    }
    
    .toggle-password {
        position: absolute;
        right: 10px;
        top: 70%;
        transform: translateY(-50%);  /* This centers the button vertically */
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        font-size: 1em;
    }

/* Small Hint */
small {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Error Message */
.form-error {
  padding: 0.75rem;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

/* Submit Button */
.submit-btn {
  padding: 0.6rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: var(--primary-hover);
}

/* Login Link */
.login-link {
  text-align: center;
  margin-top: 1rem;
}

.login-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}
