:root {
  --peak-green: #0B4D43;   
  --muted: #6b7280;        
  --card-bg: #f6f7f8;
  --page-bg: #f6f7f8;      
  --input-border: #bcd9cf; 
  --radius-lg: 14px;
}

body {
  background-color: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

.authentication-wrapper.authentication-basic {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.authentication-inner {
  transform: translateY(-12vh); 
}

@media (min-width: 768px) {
  .authentication-inner {
    transform: translateY(-8vh);
  }
}

.authentication-inner .card {
  width: 360px; 
  max-width: calc(100% - 32px);
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: hidden;
}

.authentication-inner .card-body {
  padding: 2rem 1.75rem;
}

.app-brand .app-brand-logo img {
  width: 155px;
  display: block;
  margin: 0 auto 0.5rem auto;
}

h4.mb-2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-body p.mb-4 {
  color: black;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-control {
  border-radius: 10px;
  border: 2px solid #0B4D43;
  padding: 0.75rem 0.9rem;
  height: auto;
  box-shadow: none;
  background-clip: padding-box;
  width: 100%; /* mismo ancho que el botón */
}

/* placeholder color más tenue */
.form-control::placeholder {
  color: #9aa3a0;
}

/* password toggle icon */
.input-group .input-group-text {
  background: transparent;
  border-left: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  box-shadow: none;
}

/* quitar doble borde entre input y icono */
.input-group-merge .form-control {
  border-right: none;
}

/* Botón principal estilizado */
.btn-primary.d-grid.w-100 {
  background-color: var(--peak-green);
  border-color: var(--peak-green);
  color: #fff;
  border-radius: 24px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  box-shadow: none;
  width: 100%; /* igual ancho que inputs */
}

/* hover efecto */
.btn-primary.d-grid.w-100:hover {
  background-color: #0B4D43;
  border-color: #0B4D43;
}

/* Links y textos pequeños */
.card-body a,
.card-body small,
.text-center a {
  color: var(--peak-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* link "Olvide mi contraseña" */
.d-flex.justify-content-between a small {
  font-size: 0.85rem;
}

/* texto centrado inferior */
.text-center {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* responsive: reducir ancho en pantallas pequeñas */
@media (max-width: 380px) {
  .authentication-inner .card {
    width: calc(100% - 24px);
    padding: 1rem;
  }
}


.authentication-wrapper.authentication-basic {
  display: flex;
  align-items: flex-start;        
  justify-content: center;
  min-height: 100vh;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12vh);
  padding-bottom: 2rem;
}

.authentication-inner {
  transform: none !important;
  margin: 0 auto;
  width: 100%;
  max-width: 420px; 
}

.authentication-inner .card {
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.app-brand .app-brand-logo,
.app-brand {
  position: relative;
  z-index: 20;              
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-brand .app-brand-logo img,
.app-brand img {
  width: 120px;
  max-width: 36vw;          
  height: auto;
  display: block;
}

@media (max-width: 420px) {
  .authentication-wrapper.authentication-basic {
    padding-top: calc(env(safe-area-inset-top, 0px) + 6vh);
  }
  .app-brand .app-brand-logo img {
    width: 110px;
    max-width: 44vw;
  }
}

@media (min-width: 992px) {
  .authentication-wrapper.authentication-basic {
    align-items: center;
    padding-top: 2rem;
  }
  .authentication-inner { transform: none !important; }
}

.app-brand[style] { top: auto !important; }

input[autofocus] { scroll-margin-top: 120px; } 



.page-wheel-svg {
  position: absolute;
  top: 12px;        
  right: 12px;      
  width: 56px;     
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  pointer-events: none; 
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.page-wheel-svg .wheel-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); 
  overflow: visible;
}

.wheel-track {
  fill: none;
  stroke: #e6e6e6;   
  stroke-width: 6.5;  
}

.wheel-progress {
  fill: none;
  stroke: var(--peak-green, #0f6b50); 
  stroke-width: 6.5;   
  stroke-linecap: round; 
  transition: stroke-dashoffset 450ms cubic-bezier(.4,.0,.2,1); 
  transform-origin: 50% 50%;
}

.page-wheel-svg .wheel-text {
  position: absolute;
  display: flex;
  gap: 4px;
  align-items: baseline;
  justify-content: center;
  pointer-events: none;
  color: #111827;
  font-weight: 700;
}
.page-wheel-svg .wheel-text .current { font-size: 14px; }
.page-wheel-svg .wheel-text .sep, .page-wheel-svg .wheel-text .total { font-size: 11px; color: rgba(0,0,0,0.5); font-weight:600; }




.avatar-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avatar-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.avatar-label {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
  border: 2px solid rgba(11,77,67,0.08);
  box-shadow: 0 6px 16px rgba(16,24,32,0.06);
  transition: transform .12s ease, box-shadow .12s ease;
}


.form-range {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0B4D43 var(--pct,0%), #e9ecef 0%);
  outline: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5d1;
  box-shadow: 0 2px 6px rgba(11,77,67,0.12);
  margin-top: -4px; 
  cursor: pointer;
}

.form-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5d1;
  box-shadow: 0 2px 6px rgba(11,77,67,0.12);
  cursor: pointer;
}

.form-range::-moz-range-track {
  background: transparent;
  height: 6px;
  border-radius: 999px;
}

.form-range:focus { box-shadow: 0 0 0 6px rgba(11,77,67,0.06); outline: none; }

@media (max-width: 480px) {
  .avatar-label { width: 80px; height: 80px; }
  .avatar-overlay { width: 28px; height: 28px; font-size:14px; }
}




.form-select {
    display: block;
    width: 100%;
    padding: 0.4375rem 1.875rem 0.4375rem 0.875rem;
    -moz-padding-start: calc(0.875rem - 3px);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.53;
    color: #697a8d;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%2867, 89, 113, 0.6%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 17px 12px;
    border: 2px solid #0f6b50;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}