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

body {
  font-family: "Questrial", sans-serif;
  background: #f5f5f5;
  color: #222;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-container {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 40px 50px 50px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  font-family: "Raleway", sans-serif;
  color: #222;
  text-decoration: none;
  position: absolute;
  top: 20px;
  left: 30px;
}

.logo span {
  color: #666;
}

.register-content {
  margin-top: 40px;
}

.register-title {
  font-size: 32px;
  font-family: "Raleway", sans-serif;
  font-weight: 900;
  text-transform: lowercase;
  margin-bottom: 30px;
  text-align: center;
}

.input-wrapper {
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="phone"] {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e5e5e5;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  color: #222;
  font-family: "Questrial", sans-serif;
  transition: all 0.3s;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="phone"]:focus {
  border-color: #222;
  transform: translateY(-1px);
}

input::placeholder {
  color: #999;
}

.checkbox-wrapper {
  margin-bottom: 30px;
  margin-top: 20px;
}

.checkbox-entry {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: #666;
}

.checkbox-entry input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  margin-top: 1px;
  flex-shrink: 0;
}

.checkbox-entry span a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 600;
}

.checkbox-entry span a:hover {
  color: #666;
}

.btn {
  width: 100%;
  padding: 18px 30px;
  border: none;
  font-size: 14px;
  text-transform: lowercase;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  font-family: "Questrial", sans-serif;
  font-weight: 600;
  margin-bottom: 15px;
}

.btn-primary {
  background: #222;
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #fff;
  color: #222;
  border: 2px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-secondary:hover {
  border-color: #222;
  background: #f5f5f5;
}

.divider {
  text-align: center;
  position: relative;
  margin: 30px 0;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 43%;
  height: 1px;
  background: #e5e5e5;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 13px;
  text-transform: lowercase;
}

.login-link {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  color: #666;
}

.login-link a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.login-link a:hover {
  color: #666;
}

.error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-bottom: 15px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.error-message.show {
  opacity: 1;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

.input-error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
  min-height: 18px;
}

.input-wrapper input:invalid:focus {
  border-color: #e74c3c !important;
}

.password-wrapper {
  position: relative;
}

.eye-toggle {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-size: 18px;
  color: #777;
  cursor: pointer;
  transition: 0.3s;
}

.eye-toggle:hover {
  color: #222;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .register-container {
    padding: 30px 25px 40px;
  }

  .logo {
    font-size: 20px;
    top: 15px;
    left: 20px;
  }

  .register-content {
    margin-top: 30px;
  }

  .register-title {
    font-size: 26px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"] {
    padding: 13px 18px;
  }
}
