/* ═══════════════════════════════════════════════════════════
   BizMetry — Account Recovery Dialog
   ═══════════════════════════════════════════════════════════ */

.recover-dialog {
  width: 440px !important;
  max-width: 96vw !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 32px 80px rgba(79, 70, 229, 0.28), 0 8px 24px rgba(0,0,0,0.18) !important;
  animation: recoverSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes recoverSlideIn {
  from { opacity: 0; transform: translateY(28px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.recover-header {
  position: relative;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #667eea 100%);
  padding: 36px 32px 32px;
  overflow: hidden;
  text-align: center;
}

.recover-header-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 20%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(139, 92, 246, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.recover-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.recover-header-content {
  position: relative;
  z-index: 1;
}

.recover-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.recover-icon {
  color: #ffffff !important;
  font-size: 30px !important;
  width: 30px !important;
  height: 30px !important;
}

.recover-title {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.recover-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin: 0;
  line-height: 1.5;
}

/* BODY */
.recover-body {
  padding: 32px 32px 12px !important;
  background: #ffffff;
}

/* LABEL */
.recover-field-label {
  display: flex;
  align-items: center;
  gap: 6px;

  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6366f1;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  margin-bottom: 16px;
}

.recover-field-icon {
  font-size: 16px !important;
  width: 16px !important;
  height: 16px !important;
  color: #6366f1 !important;
}

/* INPUT */
.recover-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8faff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.recover-input-wrap:focus-within {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.recover-input-wrap.recover-input--valid {
  border-color: #10b981;
  background: #f0fdf9;
}

.recover-input-wrap.recover-input--valid:focus-within {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.recover-input-wrap.recover-input--invalid {
  border-color: #ef4444;
  background: #fff8f8;
}

.recover-input-wrap.recover-input--invalid:focus-within {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.recover-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: 'Roboto', sans-serif;
  font-size: 14.5px;
  color: #1e293b;
  padding: 13px 12px 13px 16px;
  letter-spacing: 0.1px;
}

.recover-input::placeholder {
  color: #94a3b8;
  font-weight: 300;
}

/* INDICATOR */
.recover-input-indicator {
  display: flex;
  align-items: center;
  padding-right: 12px;
  flex-shrink: 0;
}

.ri-ok,
.ri-err {
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  animation: indicatorPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ri-ok {
  color: #10b981 !important;
}

.ri-err {
  color: #ef4444 !important;
}

@keyframes indicatorPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* VALIDATION MESSAGE */
.recover-validation-msg {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 6px;

  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  color: #ef4444;
  font-weight: 500;

  margin-top: 10px;
  padding-left: 2px;
  width: 100%;

  animation: msgSlide 0.2s ease both;
}

.recover-validation-msg md-icon {
  font-size: 14px !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  color: #ef4444 !important;
  flex-shrink: 0;
}

@keyframes msgSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SENT STATE */
.recover-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 16px;
  animation: recoverSlideIn 0.3s ease both;
}

.recover-sent-ring {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.recover-sent-check {
  width: 72px;
  height: 72px;
}

.recover-sent-circle {
  stroke: #10b981;
  stroke-width: 2.5;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: drawCircle 0.5s 0.1s ease-out forwards;
}

.recover-sent-path {
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: drawCheck 0.35s 0.55s ease-out forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.recover-sent-title {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.recover-sent-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  max-width: 300px;
}

.recover-sent-desc strong {
  color: #4f46e5;
  font-weight: 600;
}

/* ACTIONS */
.recover-actions {
  padding: 12px 24px 20px !important;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  margin-top: 12px;
}

.recover-cancel-btn {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  min-width: 80px !important;
  border-radius: 8px !important;
  text-transform: none !important;
  letter-spacing: 0.1px !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}

.recover-cancel-btn:hover {
  color: #64748b !important;
  background: #f8faff !important;
}

.recover-submit-btn {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  border-radius: 9px !important;
  padding: 0 20px !important;
  min-height: 38px !important;
  height: 38px !important;
  text-transform: none !important;
  letter-spacing: 0.1px !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
  transition: box-shadow 0.2s ease, opacity 0.15s ease, transform 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.recover-submit-btn:not([disabled]):hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45) !important;
  transform: translateY(-1px) !important;
}

.recover-submit-btn:not([disabled]):active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3) !important;
}

.recover-submit-btn[disabled] {
  background: #c7d2fe !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.7) !important;
}

.recover-submit-btn md-icon {
  font-size: 17px !important;
  width: 17px !important;
  height: 17px !important;
  color: #ffffff !important;
}

.recover-spinner-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recover-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: recoverSpin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* FINAL OVERRIDES — Account Recovery layout fixes */

.recover-body {
  padding: 48px 40px 16px !important;
  text-align: left !important;
}

.recover-step {
  width: 100% !important;
  text-align: left !important;
}

.recover-field-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;

  width: 100% !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
}

.recover-field-label span {
  display: inline-block !important;
  text-align: left !important;
}

.recover-field-icon {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.recover-input-wrap {
  width: 100% !important;
}

.recover-validation-msg {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;

  width: 100% !important;
  text-align: left !important;

  margin: 12px 0 0 0 !important;
  padding: 0 !important;
}

.recover-validation-msg md-icon {
  margin: 0 !important;
  flex: 0 0 14px !important;
}

.recover-validation-msg span {
  display: inline-block !important;
  text-align: left !important;
}