@charset "UTF-8";

/* ========================================
   Mortgage Application Form Styles
   ======================================== */

body {
  font-family: "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
}

#content {
  height: 100%;
}

/* Form Title */
.form-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

/* Success Message (登録完了時) - .info-banner を継承 */

/* Error Message */
.loginMes {
  margin-bottom: 32px;
}

.error-message {
  display: none;
  color: #D86767;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.error-message.show {
  display: block;
}

.error-message i {
  display: none;
}

/* Password input with toggle */
.password-input-wrap {
  position: relative;
}

.password-input-wrap .form-control {
  width: 100%;
  padding-right: 40px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.password-toggle-btn:hover {
  opacity: 0.7;
}

/* Forgot Password Link */
.forgot-password {
  text-align: center;
  margin-top: 30px;
}

.forgot-password a {
  color: #2E709E;
  font-size: 14px;
  text-decoration: underline;
}

.forgot-password a:hover {
  color: #2E709E;
  text-decoration: underline;
  opacity: 0.8;
}

/* Register Section */
.register-section {
  text-align: center;
  margin-top: 70px;
}

.register-divider {
  height: 1px;
  width: 100%;
  background: #d0d7de;
  margin-bottom: 30px;
}

.register-label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 30px;
}

/* Login Button Enhancement */
.login_form .btn-primary {
  background: #3673A2;
  font-size: 15px;
  padding: 12px 40px;
  height: 40px;
  border-radius: 8px;
  gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: none;
}

.login_form .btn-primary:hover,
.login_form .btn-primary:focus {
  background: #3673A2;
  border-color: #3673A2;
  box-shadow: none;
  outline: none;
}

.login_form .btn-primary:disabled {
  background: #a0c4d8;
  box-shadow: none;
  transform: none;
}

/* Container adjustments */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
    margin-bottom: 200px;
    align-self: center;
  }
}

a:hover {
  text-decoration: none;
  color: #636b6f;
}

/* Loading state for buttons */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

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

/* ========================================
   Register Form Styles
   ======================================== */

.register-form {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 34px 24px 48px;
}

.register-form .panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: none;
  max-width: 567px;
  margin: 0 auto;
  padding: 0;
}

.register-title {
  font-size: 18px;
  font-weight: 600;
  color: #404040;
  line-height: 130%;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid #D4D4D4;
  margin-bottom: 40px;
}

/* Name row */
.name-row {
  display: flex;
  gap: 24px;
}

.name-row > div {
  flex: 1;
}

/* Form group */
.register-form .form-group {
  margin-bottom: 24px;
}

.register-form .form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  color: #404040;
}

.required-mark {
  color: #D86767;
}

.register-form .form-control {
  height: 39px;
  border: 1px solid #D4D4D4;
  border-radius: 8px;
  font-size: 14px;
  padding: 10px;
  transition: all 0.2s ease;
}

.register-form .form-control:focus {
  border-color: #3673A2;
  box-shadow: none;
}

.hint {
  font-size: 10px;
  color: #6c7a89;
  margin-top: 0;
  line-height: 1.5;
}

/* Password toggle */
.password-toggle {
  margin-top: 0;
  margin-bottom: 0;
}

.register-form .password-toggle label {
  font-weight: normal;
  font-size: 12px;
  color: #404040;
  margin-bottom: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Actual demand section */
.actual-demand-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 16px 0 0;
}

.actual-demand-title {
  font-weight: 600;
  font-size: 14px;
  color: #404040;
  margin-bottom: 4px;
}

.actual-demand-box {
  border: 1px solid #D4D4D4;
  border-radius: 3px;
  background: #FCFEFF;
  padding: 16px;
  box-sizing: border-box;
}

.actual-demand-box p {
  margin: 0;
  font-size: 14px;
  color: #404040;
  line-height: 1.6;
}

/* Terms section */
.terms-section {
  margin: 24px 0;
}

.term-block {
  margin-bottom: 16px;
}

.term-title {
  font-weight: 600;
  font-size: 14px;
  color: #404040;
  margin-bottom: 8px;
}

.term-iframe {
  width: 100%;
  height: 87px;
  border: 1px solid #D4D4D4;
  border-radius: 3px;
  background: #FCFEFF;
  padding: 16px 4px 0 16px;
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  cursor: pointer;
  font-size: 14px;
  color: #404040;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #3673A2;
  flex-shrink: 0;
}

.agree-checkbox {
  color: #404040;
  font-weight: 600;
  font-size: 16px;
}

/* Register action button */
.register-action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Error message */
.register-error {
  display: none;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fef5f5 0%, #fff 100%);
  border: 1px solid #f5c6cb;
  color: #D86767;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.register-error.show {
  display: flex;
}

.register-error i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Field validation error */
.register-form .form-control.is-invalid {
  border-color: #D86767;
  background-color: rgba(216, 103, 103, 0.1);
}

.register-form .form-control.is-invalid:focus {
  border-color: #D86767;
  box-shadow: none;
}

.field-error {
  color: #D86767;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  display: none;
}

.field-error.show {
  display: block;
}

/* Back link */
.back-link {
  text-align: center;
  margin-top: 40px;
}

.back-link a {
  color: #2E709E;
  font-size: 14px;
  text-decoration: underline;
}

.back-link a:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .register-form {
    padding: 24px 16px 36px;
  }

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

@media (max-width: 480px) {
  .register-form {
    padding: 16px 16px 30px;
  }

  .register-form .panel {
    padding: 20px;
  }

  .name-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ========================================
   Register Complete Styles（共通クラスを継承）
   ======================================== */

.complete-divider {
  margin: 0 0 24px;
}

.complete-message {
  color: #404040;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 0;
}

.complete-message + .complete-message {
  margin-top: 0;
}

.complete-message:last-of-type {
  margin-bottom: 24px;
}

.complete-notice {
  margin: 0 0 80px;
}

.complete-action {
  display: flex;
  justify-content: center;
}

@media (max-width: 480px) {
  .page-container {
    padding: 16px 16px 30px;
  }
}
