/**
 * 2FA Modal Styles
 */

.two-factor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in;
}

.two-factor-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.two-factor-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.two-factor-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.two-factor-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.two-factor-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.two-factor-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.two-factor-modal-body {
  padding: 28px;
}

.transfer-info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.transfer-info h3 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transfer-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.transfer-detail-row:last-child {
  border-bottom: none;
}

.transfer-detail-row .label {
  font-weight: 500;
  color: #6b7280;
  font-size: 14px;
}

.transfer-detail-row .value {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
}

.two-factor-input-section {
  margin: 24px 0;
}

.two-factor-input-section p {
  margin: 0 0 12px 0;
  color: #4b5563;
  font-size: 14px;
}

.two-factor-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 8px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.2s;
  font-family: 'Courier New', monospace;
}

.two-factor-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin-top: 8px !important;
}

.error-message {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.error-message::before {
  content: "⚠️";
  margin-right: 8px;
}

.success-message {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.success-message::before {
  content: "✓";
  margin-right: 8px;
  font-weight: bold;
}

.two-factor-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 12px 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .two-factor-modal-content {
    width: 95%;
    margin: 20px;
  }

  .two-factor-modal-header,
  .two-factor-modal-body,
  .two-factor-modal-footer {
    padding: 20px;
  }

  .two-factor-input {
    font-size: 24px;
    letter-spacing: 6px;
  }

  .transfer-detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .transfer-detail-row .value {
    text-align: left;
    max-width: 100%;
  }
}
