/* --- Scoped styles for Registration Page --- */
.register-form {
  max-width: 420px;
  margin: 60px auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  font-family: "Rubik", sans-serif;
}

.register-form h1 {
  text-align: center;
  color: #22527b;
  font-weight: 600;
  margin-bottom: 25px;
}

/* --- Form Row Layout --- */
.register-form .form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

/* --- Labels --- */
.register-form label {
  flex: 0 0 130px;
  font-weight: 600;
  color: #333;
  text-align: right;
}

/* --- Inputs --- */
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f3f6fb;
  font-size: 0.95rem;
  height: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form input:focus {
  border-color: #22527b;
  box-shadow: 0 0 0 2px rgba(34, 82, 123, 0.2);
  outline: none;
}

/* --- Password Wrapper (adds eye icon) --- */
.register-form .password-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.register-form .password-wrapper input {
  width: 100%;
  padding-right: 36px; /* space for eye icon */
}

/* --- Eye Toggle --- */
.register-form .toggle-visibility {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-form .toggle-visibility svg {
  width: 18px;
  height: 18px;
  stroke: #666;
}

.register-form .toggle-visibility:hover svg {
  stroke: #22527b;
}

/* --- Password Hint --- */
.register-form .password-hint {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
  margin-bottom: 10px;
  margin-left: 65px;
  line-height: 1.3;
}

/* --- Buttons --- */
.register-form .register-btn {
  display: block;
  width: fit-content;
  margin: 20px auto 10px auto;
  background-color: #22527b;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.register-form .register-btn:hover {
  background-color: #1a3f5c;
}

/* --- Footer Link --- */
.register-form p {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
}

.register-form a {
  color: #22527b;
  text-decoration: none;
}

.register-form a:hover {
  text-decoration: underline;
}

/* Scope to registration/login pages */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 30px;
}

/* Makes Register and Login pages consistent */
.auth-page .logo {
  margin-bottom: 15px;
  text-align: center;
}

.auth-page .logo img {
  width: 220px;
  height: auto;
}
.auth-page a {
  color: #22527b;
  text-decoration: none;
}
.auth-page a:hover {
  text-decoration: underline;
}
