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

:root {
  --prime: #8B0E0E;
  --prime-hover: #A51515;
}

body {
  font-family: 'Cairo', sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.register-header {
  text-align: center;
  margin-bottom: 20px;
}

.register-header h1 {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.register-header p {
  color: #666;
  font-size: 11px;
  font-weight: 400;
}

.error-box {
  background: #fff5f5;
  border-right: 2px solid var(--prime);
  color: #c53030;
  padding: 10px 12px;
  border-radius: 7px;
  margin-bottom: 16px;
  font-size: 11px;
  line-height: 1.5;
}

.success-box {
  background: #f0fdf4;
  border-right: 2px solid #10b981;
  color: #047857;
  padding: 10px 12px;
  border-radius: 7px;
  margin-bottom: 16px;
  font-size: 11px;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 14px;
  position: relative;
}

.input-group label {
  display: block;
  color: #2d3748;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  fill: #a0aec0;
  transition: fill 0.3s ease;
}

.input-field {
  width: 100%;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 10px 38px 10px 12px;
  color: #2d3748;
  font-size: 12px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  font-weight: 500;
}

.input-field:focus {
  outline: none;
  background: #fff;
  border-color: var(--prime);
  box-shadow: 0 0 0 3px rgba(139, 14, 14, 0.1);
}

.input-field:focus ~ .input-icon svg {
  fill: var(--prime);
}

.input-field::placeholder {
  color: #cbd5e1;
  font-size: 11px;
}

.toggle-password {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.toggle-password svg {
  width: 16px;
  height: 16px;
  fill: #a0aec0;
  transition: fill 0.3s ease;
}

.toggle-password:hover svg {
  fill: var(--prime);
}

.password-hint {
  font-size: 10px;
  color: #718096;
  margin-top: 4px;
}

.btn-submit {
  width: 100%;
  background: var(--prime);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 11px;
  font-size: 12px;
  font-weight: 900;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  margin-top: 6px;
}

.btn-submit:hover {
  background: var(--prime-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 14, 14, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.separator span {
  color: #718096;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-google {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 10px;
  color: #2d3748;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-google:hover {
  background: #f7fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-icon {
  width: 15px;
  height: 15px;
}

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

.login-link a {
  color: var(--prime);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: var(--prime-hover);
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .register-box {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .register-box {
    padding: 20px 16px;
  }
}