* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #0f1115;
  color: #ffffff;
}

.register-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.register-container {
  width: 100%;
  max-width: 560px;
}

.register-card {
  background: #171a21;
  border: 1px solid #2a2f3a;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.register-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.register-subtitle {
  text-align: center;
  color: #a7adbb;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: #8f97a8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  height: 50px;
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  background: #0f1319;
  color: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.form-input:focus {
  border-color: #2dd4bf;
}

.with-toggle {
  padding-right: 52px;
}

.check-btn {
  min-width: 110px;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #232836;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.check-btn:hover {
  background: #2a3140;
}

.toggle-visibility-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b8bfcc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toggle-visibility-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.eye-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hidden-icon {
  display: none;
}

.field-message {
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: #9ea6b6;
}

.field-message.error {
  color: #ff6b6b;
}

.field-message.success {
  color: #2dd4bf;
}

.password-strength {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.strength-label {
  color: #9ea6b6;
}

.strength-value {
  margin-left: 4px;
}

.strength-empty {
  color: #9ea6b6;
}

.strength-danger {
  color: #ff5f5f;
}

.strength-warning {
  color: #f4c542;
}

.strength-safe {
  color: #31d67b;
}

.password-guide {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #9ea6b6;
  font-weight: 300;
  letter-spacing: 0.1px;
}

.password-guide strong {
  color: #d7dce5;
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #2dd4bf;
  color: #071013;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 6px;
}

.submit-btn:hover {
  opacity: 0.92;
}

.bottom-link-text {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #9ea6b6;
}

.bottom-link-text a {
  color: #2dd4bf;
  text-decoration: none;
  font-weight: 700;
  margin-left: 4px;
}

.bottom-link-text a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .register-wrap {
    padding: 18px 14px;
  }

  .register-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .register-title {
    font-size: 24px;
  }

  .input-row {
    flex-direction: column;
  }

  .check-btn {
    width: 100%;
    min-width: 0;
  }
}