/* =========================================================================
   ARELLANO CORP — Ingreso, registro y recuperación de contraseña
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.ar-auth { background: var(--paper); }
.ar-auth p { margin: 0; }

.ar-auth__grid { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; min-height: 100svh; }

/* Panel de marca */
.ar-aside { position: sticky; top: 0; height: 100vh; height: 100svh; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px clamp(28px, 4vw, 64px); }
.ar-aside__logo img { width: 200px; }
.ar-aside__orb { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); right: -82%; top: 50%; transform: translateY(-50%); opacity: .06; }
.ar-aside__orb2 { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(250,250,248,.22); right: -18%; bottom: -16%; }
.ar-aside__copy { position: relative; z-index: 1; }
.ar-aside__copy h2 { color: var(--paper) !important; font-size: clamp(40px, 4.6vw, 72px); line-height: .94; }
.ar-aside__copy h2 em { font-family: var(--f-body); font-style: italic; font-weight: 900; color: transparent; -webkit-text-stroke: 1.6px var(--paper); }
.ar-aside__copy p { margin-top: 20px; color: rgba(250,250,248,.65); line-height: 1.6; max-width: 40ch; }
.ar-aside__rates { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.ar-aside__rate { border: 1px solid rgba(250,250,248,.18); border-radius: 18px; padding: 16px 18px; }
.ar-aside__rate small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,250,248,.55); }
.ar-aside__rate strong { display: block; margin-top: 6px; font-family: var(--f-display); font-weight: 400; font-size: 26px; }
.ar-aside__rate:first-child { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ar-aside__rate:first-child small { color: var(--mute); }

/* Formulario */
.ar-auth__main { display: flex; flex-direction: column; padding: 32px clamp(20px, 5vw, 80px); }
.ar-auth__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ar-auth__top a.ar-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 14px; }
.ar-auth__top .ar-mobile-logo { display: none; }
.ar-auth__top .ar-mobile-logo img { height: 36px; }
.ar-auth__body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.ar-form { width: 100%; max-width: 440px; }
.ar-form--wide { max-width: 640px; }
.ar-form h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1; }
.ar-form h1 em { font-family: var(--f-body); font-style: italic; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ar-form__sub { margin-top: 12px !important; color: var(--mute); line-height: 1.55; }
.ar-form__fields { display: grid; gap: 16px; margin-top: 32px; }
.ar-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ar-input { position: relative; display: block; }
.ar-input > span { display: block; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.ar-input > i { position: absolute; left: 16px; top: 45px; line-height: 18px; font-size: 18px; color: var(--mute); pointer-events: none; transition: color .2s; }
.ar-input input, .ar-input select { width: 100%; height: 52px; padding: 0 16px 0 46px !important; font-size: 15px; border-radius: 14px !important; }
.ar-input select { padding-left: 46px !important; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230A0A0A' stroke-width='2' fill='none'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 16px center !important; }
.ar-input:focus-within > i { color: var(--ink); }
.ar-input .ar-eye { position: absolute; right: 10px; top: 36px; width: 36px; height: 36px; border: none; border-radius: 50%; background: transparent; color: var(--mute); font-size: 18px; cursor: pointer; }
.ar-input .ar-eye:hover { background: var(--paper-2); color: var(--ink); }
.ar-input .invalid-feedback { display: block; font-size: 12px; color: var(--bad); margin-top: 6px; }
.ar-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--ink-3); cursor: pointer; line-height: 1.45; }
.ar-check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 18px; }
.ar-form__between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ar-form__between a { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ar-form .ar-btn { width: 100%; padding: 1.05em 1.6em; font-size: 15px; }
.ar-divider { display: flex; align-items: center; gap: 14px; color: var(--mute-2); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ar-divider::before, .ar-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ar-social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-social-btns a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .2s, background .2s; }
.ar-social-btns a:hover { border-color: var(--ink); background: var(--white); opacity: 1; }
.ar-social-btns img { width: 18px; height: 18px; }
.ar-form__foot { margin-top: 28px !important; text-align: center; color: var(--mute); font-size: 14px; }
.ar-form__foot a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ar-notice { padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 1.5; margin-top: 20px; }
.ar-auth .ar-flash { margin: 18px 0 0; }

/* Indicador de fuerza de contraseña */
.ar-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ar-strength span { height: 4px; border-radius: 4px; background: var(--paper-3); transition: background .3s; }
.ar-strength[data-level="1"] span:nth-child(-n+1),
.ar-strength[data-level="2"] span:nth-child(-n+2),
.ar-strength[data-level="3"] span:nth-child(-n+3),
.ar-strength[data-level="4"] span { background: var(--ink); }
.ar-strength-text { font-size: 12px; color: var(--mute); margin-top: 6px; }

/* Selector de tipo de persona */
.ar-segment { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: var(--r-pill); background: var(--paper-2); border: 1px solid var(--paper-3); position: relative; }
.ar-segment label { position: relative; z-index: 1; margin: 0; text-align: center; padding: 11px 10px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; cursor: pointer; transition: color .35s var(--ease); }
.ar-segment input { position: absolute; opacity: 0; pointer-events: none; }
.ar-segment__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: var(--r-pill); background: var(--ink); transition: transform .45s var(--ease); }
.ar-segment[data-value="1"] .ar-segment__pill { transform: translateX(100%); }
.ar-segment label.is-on { color: var(--paper); }

/* Página simple (recuperar contraseña, verificar) */
.ar-simple { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; overflow: hidden; }
.ar-simple::before { content: ""; position: absolute; width: 70vmax; aspect-ratio: 1; border-radius: 50%; background: var(--ink); right: -30vmax; top: -35vmax; }
.ar-simple__card { position: relative; width: min(480px, 100%); background: var(--white); border: 1px solid var(--paper-3); border-radius: 32px; padding: 44px 38px; box-shadow: var(--shadow-3); }
.ar-simple__card .ar-simple__logo { display: block; width: 170px; margin-bottom: 28px; }

@media (max-width: 960px) {
	.ar-auth__grid { grid-template-columns: 1fr; }
	.ar-aside { display: none; }
	.ar-auth__top .ar-mobile-logo { display: block; }
}
@media (max-width: 560px) {
	.ar-form__row, .ar-social-btns { grid-template-columns: 1fr; }
	.ar-simple__card { padding: 34px 22px; }
}
