@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.register-page {
  min-height: 100vh;
  background: linear-gradient(0deg, #F2F4F6 0%, #F2F4F6 100%), #FFF;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 16px;
}

.register-card {
  width: 100%;
  max-width: 480px;
  background: #FFF;
  border-radius: 16px;
  border: 1px solid rgba(196, 197, 213, 0.30);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 40px;
}

/* Brand */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-name {
  color: #164D6D;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

/* Page Header */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.page-title {
  color: #191C1E;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.28px;
  text-align: center;
}

.page-subtitle {
  color: #444653;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

/* Form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  color: #191C1E;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.7px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.text-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  border-radius: 8px;
  border: 1px solid #C4C5D5;
  background: #FFF;
  color: #191C1E;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s;
}

.text-input::placeholder {
  color: #757684;
}

.text-input:focus {
  border-color: #00288E;
}

.password-input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  color: #757684;
}

/* Terms Checkbox */
.terms-row {
  display: flex;
  align-items: flex-start;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.terms-checkbox {
  display: none;
}

.checkbox-box {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #C4C5D5;
  background: #F7F9FB;
  margin-top: 2px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.terms-checkbox:checked+.checkbox-box {
  background: #00288E;
  border-color: #00288E;
}

.terms-checkbox:checked+.checkbox-box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: 2px solid #FFF;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.terms-text {
  color: #444653;
  font-size: 14px;
  line-height: 20px;
}

.terms-link {
  color: #00288E;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #00288E;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.7px;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #001f70;
}

/* Footer */
.signin-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
}

.error-message {
  color: #D92D20;
  font-size: 12px;
  line-height: 16px;
}

.signin-text {
  color: #444653;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.signin-link {
  color: #00288E;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.7px;
  text-decoration: none;
}

.signin-link:hover {
  text-decoration: underline;
}

/* Responsive — tablet */
@media (max-width: 576px) {
  .register-page {
    padding: 24px 16px;
    align-items: flex-start;
  }

  .register-card {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .page-title {
    font-size: 24px;
    line-height: 32px;
  }

  .page-subtitle {
    font-size: 14px;
    line-height: 22px;
  }

  .text-input {
    font-size: 15px;
  }
}

/* Responsive — small mobile */
@media (max-width: 360px) {
  .register-card {
    padding: 24px 16px;
  }

  .page-title {
    font-size: 22px;
  }
}