/* 2FA認証画面用CSS */

.container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.justify-content-center {
  justify-content: center;
}

.col-md-8 {
  flex: 0 0 auto;
  width: 66.6667%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  font-size: 1.2rem;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.card-body {
  padding: 2rem 1.5rem;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.text-center {
  text-align: center;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

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

.btn-danger {
  background: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  background: #a71d2a;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.col-form-label, .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.backup-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  font-family: monospace;
  font-size: 1.2rem;
  text-align: center;
}

.backup-code {
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* アプリダウンロードリンクのスタイル */
.app-links {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.app-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-links li {
  margin: 0.5rem 0;
}

.app-links a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.app-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.text-muted {
  color: #6c757d !important;
}

.small {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .col-md-8 {
    width: 100%;
  }
  .container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .card-body {
    padding: 1rem 0.5rem;
  }
  .app-links {
    padding: 0.75rem;
  }
}

/* --- 2FAプロンプト用モーダル（bootstrap依存なし）--- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.15s linear;
}
.modal[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}
.modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
@media (min-width: 576px) {
  .modal-dialog {
    min-height: calc(100% - 3.5rem);
  }
}
.modal-content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.modal-body {
  padding: 1.5rem;
  font-size: 1rem;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: #007bff;
  color: #fff;
}
.btn-primary:hover {
  background: #0056b3;
}
.btn-secondary {
  background: #6c757d;
  color: #fff;
}
.btn-secondary:hover {
  background: #495057;
}
.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  border-radius: 0.25rem;
  transition: background 0.2s, color 0.2s;
}
.btn-close:hover {
  background: #e9ecef;
  color: #333;
}
@media (max-width: 576px) {
  .modal-dialog {
    max-width: 95vw;
  }
  .modal-content {
    padding: 0.5rem;
  }
  .modal-header, .modal-footer {
    padding: 0.75rem 1rem;
  }
  .modal-body {
    padding: 1rem;
  }
} 