/* キーエンス方式認証フォームスタイル */

.keyence-auth-form {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.auth-header {
  background: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.auth-header h3 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  color: #333;
}

/* プログレスバー */
.progress-bar {
  position: relative;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #6c757d;
  transition: all 0.3s;
}

.progress-step.active {
  background: #007bff;
  color: white;
}

.progress-step.completed {
  background: #28a745;
  color: white;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.progress-fill {
  height: 100%;
  background: #28a745;
  transition: width 0.3s;
}

/* フォーム本体 */
.auth-form-body {
  padding: 30px;
}

.form-step h4 {
  margin: 0 0 20px 0;
  color: #333;
}

.step-description {
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.6;
}

.step-description small {
  display: block;
  margin-top: 10px;
  color: #868e96;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control.readonly {
  background: #f8f9fa;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.half {
  margin-bottom: 0;
}

.required {
  color: #dc3545;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

/* ボタン */
.btn-primary {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.btn-primary.btn-block {
  width: 100%;
  padding: 16px;
}

.btn-secondary {
  background: white;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: #f8f9fa;
}

.btn-secondary.btn-block {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
}

.button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  gap: 10px;
}

/* 会社名サジェスト */
.suggestions-list {
  position: absolute;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  width: 100%;
  margin-top: 5px;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: #f8f9fa;
}

/* その他 */
.privacy-notice {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
  color: #6c757d;
  margin: 20px 0;
  line-height: 1.6;
}

.privacy-notice a {
  color: #007bff;
  text-decoration: none;
}

.privacy-notice a:hover {
  text-decoration: underline;
}

.forgot-password {
  text-align: center;
  margin-top: 20px;
}

.forgot-password a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* 成功画面 */
.success-container {
  text-align: center;
  padding: 60px 30px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 30px;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-container h3 {
  margin-bottom: 20px;
  color: #333;
}

.success-container p {
  color: #6c757d;
  line-height: 1.6;
}

.success-note {
  margin-top: 30px;
  font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn-secondary {
    width: 100%;
  }
}