/* Layout rules are limited to the dedicated authentication screen. */
body.arian-auth-page:not(.elementor-editor-active) { margin: 0; overflow: hidden; }
body.arian-auth-page { --arian-admin-height: 0px; }
body.arian-auth-page.admin-bar { --arian-admin-height: 32px; }
body.arian-auth-page #arian-auth-main { width: 100%; margin: 0; padding: 0; }
body.arian-auth-page .arian-auth-layout {
  box-sizing: border-box;
  height: calc(100vh - var(--arian-admin-height));
  height: calc(100dvh - var(--arian-admin-height));
  min-height: 0 !important; overflow: hidden;
  flex-wrap: nowrap; --flex-wrap: nowrap;
}
body.arian-auth-page .arian-auth-layout > .e-con-inner { height: 100%; min-height: 0; flex-wrap: nowrap; }
body.arian-auth-page .arian-auth-panel {
  box-sizing: border-box; min-width: 0; min-height: 0 !important;
  height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
/* Preserve Elementor alignment normally; only overflowing panels need top alignment. */
body.arian-auth-page .arian-auth-panel.arian-panel-overflow { justify-content: flex-start; --justify-content: flex-start; }
body.arian-auth-page .arian-auth-panel > .e-con-inner { min-height: 0; height: auto; flex-shrink: 0; }
body.arian-auth-page .arian-auth-panel > * { flex-shrink: 0; }
body.arian-auth-page .arian-auth-visual { min-width: 0; min-height: 0 !important; height: 100%; overflow: hidden; box-sizing: border-box; }
.arian-customer { --arian-soft: #FFF5D8; width: 100%; max-width: 480px; margin: 0 auto; box-sizing: border-box; color: #262626; font-family: inherit; font-size: 15px; line-height: 1.9; text-align: right; }
.arian-customer *, .arian-customer *::before, .arian-customer *::after { box-sizing: border-box; }
.arian-customer [hidden] { display: none !important; }
.arian-customer h1 { font: inherit; font-size: clamp(23px, 2vw, 30px); font-weight: 700; margin: 0 0 12px; color: inherit; }
.arian-customer p { margin: 0 0 20px; }
.arian-customer .arian-lead { color: #6b7280; margin-bottom: 30px; }
.arian-customer label { display: block; margin: 0 0 20px; font-weight: 500; }
.arian-customer input:not([type=checkbox]) { display: block; width: 100%; min-height: 54px; height: auto; background: #fff; color: #262626; border: 1px solid #d8d8d8; border-radius: var(--arian-radius, 12px); padding: 12px 16px; margin: 7px 0 0; font: inherit; box-shadow: none; }
.arian-customer input[type=tel] { direction: ltr; text-align: left; }
.arian-customer input:focus-visible { outline: none; }
.arian-customer input:not([name=otp]):focus { background-color: #FFF5D8 !important; border-color: var(--arian-accent, #FFBF00) !important; outline: none !important; box-shadow: none !important; }
.arian-customer input:not([name=otp]):-webkit-autofill,
.arian-customer input:not([name=otp]):-webkit-autofill:hover,
.arian-customer input:not([name=otp]):-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #FFF5D8 inset !important;
  box-shadow: 0 0 0 1000px #FFF5D8 inset !important;
  -webkit-text-fill-color: #262626 !important;
}
.arian-customer input:not([name=otp]):autofill { background-color: #FFF5D8 !important; }
.arian-customer ::selection { background: #FFF5D8; color: #262626; }
.arian-customer button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.arian-customer button:focus-visible { outline: 2px solid var(--arian-accent, #FFBF00); outline-offset: 3px; }
.arian-customer button:disabled { opacity: .55; cursor: wait; }
.arian-customer .arian-primary, .arian-customer .arian-secondary { width: 100%; min-height: 54px; padding: 12px 16px; border-radius: var(--arian-radius, 12px); font-weight: 700; margin: 8px 0 0; border: 1px solid transparent; }
.arian-customer .arian-primary, .arian-customer .arian-primary:hover, .arian-customer .arian-primary:focus { background: var(--arian-accent, #FFBF00); color: #202020; }
.arian-customer .arian-secondary { background: transparent; color: #4a4a4a; border-color: #d8d8d8; }
.arian-customer .arian-secondary:hover { background: #FFF5D8; color: #202020; }
.arian-customer button.arian-link,
.arian-customer button.arian-link:hover,
.arian-customer button.arian-link:active,
.arian-customer button.arian-link:focus {
  display: inline; min-height: 36px; background: transparent !important;
  color: #444 !important; border: 0; padding: 4px 0; box-shadow: none !important;
  text-decoration: underline; text-underline-offset: 4px; transform: none !important; transition: none;
}
.arian-customer .arian-check { display: flex; gap: 10px; align-items: center; }
.arian-customer input[type=checkbox] { width: 19px; height: 19px; margin: 0; accent-color: var(--arian-accent, #FFBF00); }
.arian-customer .arian-partner-note { font-size: 13px; padding: 12px; background: #FFF5D8; border-radius: 8px; }
.arian-customer .arian-message-slot { margin-top: 20px; min-height: 88px; }
.arian-customer .arian-message { padding: 12px 16px; border-radius: var(--arian-radius, 12px); background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; margin: 0; overflow-wrap: anywhere; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.arian-customer .arian-message.is-visible { opacity: 1; visibility: visible; }
.arian-customer .arian-message.is-success { background: #e8f8ee; color: #166534; border-color: #a4dfb8; }
.arian-customer .arian-code-label { margin: 28px 0 12px; }
.arian-customer .arian-otp-wrap { position: relative; display: block; margin: 8px auto 0; width: 100%; max-width: 360px; height: auto; cursor: text; }
.arian-customer .arian-boxes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.arian-customer .arian-boxes span { aspect-ratio: 1 / 1; min-width: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #d8d8d8; border-radius: var(--arian-radius, 12px); color: #262626; font-size: 25px; font-weight: 600; }
.arian-customer .arian-boxes span.is-active { border: 2px solid var(--arian-accent, #FFBF00); background: #FFF5D8; }
.arian-customer .arian-otp-wrap input[name=otp],
.arian-customer .arian-otp-wrap input[name=otp]:focus,
.arian-customer .arian-otp-wrap input[name=otp]:disabled,
.arian-customer .arian-otp-wrap input[name=otp][readonly] {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  opacity: 0 !important; color: transparent !important; -webkit-text-fill-color: transparent !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  outline: none !important; caret-color: transparent; cursor: text; font-size: 20px;
  transition: none !important; transform: none !important;
}
.arian-customer .arian-otp-wrap:focus-within { outline: 1px solid transparent; }
.arian-customer .arian-progress { min-height: 25px; margin: 8px 0 0; font-size: 13px; color: #666; }
.arian-customer .arian-resend-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; }
.arian-customer form { margin: 0; }
.arian-customer .arian-phone label { margin-bottom: 16px; }
.arian-customer .arian-phone .arian-primary { margin-top: 0; }
.arian-customer .arian-code-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 16px; }
.arian-customer .arian-code-label > span:first-child { white-space: nowrap; }
.arian-customer .arian-otp-wrap { margin: 0; max-width: 320px; flex: 1; }
.arian-customer .arian-code-actions { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 12px; }
.arian-customer .arian-code-actions button { margin: 0; min-width: 0; min-height: 54px; border-radius: var(--arian-radius,12px); }
.arian-customer button.arian-resend { background: white; border: 1px solid #d8d8d8; color: #555; padding: 8px 4px; font-size: 12px; opacity: 1; box-shadow: none; }
.arian-customer button.arian-resend.is-ready { background: #ededed; border-color: transparent; }
.arian-customer button.arian-resend:hover { color: #555; }
.arian-customer button.arian-edit, .arian-customer button.arian-edit:hover, .arian-customer button.arian-edit:focus { color: var(--arian-accent,#FFBF00) !important; }
.arian-customer .arian-code { position: relative; }
.arian-customer .arian-progress { position: absolute; top: 100%; right: 0; left: 0; margin-top: 8px; }
.arian-customer .arian-message-slot { margin-top: 48px; min-height: 64px; }
/* Only layout is managed outside the shortcode. Typography remains owned by Elementor. */
@media (min-width: 768px) {
  body.arian-auth-page .arian-auth-panel { display: flex; flex-direction: column; gap: 12px; justify-content: flex-start; }
  body.arian-auth-page .arian-auth-panel > .e-con-inner { display: flex; flex-direction: column; flex: 1; width: 100%; gap: 12px; }
  body.arian-auth-page .arian-auth-panel > .elementor-element:last-child,
  body.arian-auth-page .arian-auth-panel > .e-con-inner > .elementor-element:last-child { margin-top: auto; }
  .arian-customer .arian-profile label { margin-bottom: 9px; }
  .arian-customer .arian-profile input:not([type=checkbox]) { min-height: 42px; height: 42px; padding: 7px 12px; margin-top: 5px; }
  .arian-customer .arian-profile .arian-primary, .arian-customer .arian-profile .arian-secondary { min-height: 42px; padding: 7px 12px; margin-top: 8px; }
  .arian-customer[data-mode=profile] .arian-message-slot { margin-top: 16px; min-height: 44px; }
}
@media (max-width: 782px) { body.arian-auth-page.admin-bar { --arian-admin-height: 46px; } }
@media (max-width: 767px) {
  body.arian-auth-page .arian-auth-visual { display: none !important; }
  body.arian-auth-page .arian-auth-panel { width: 100% !important; flex-basis: 100% !important; --width: 100%; }
  .arian-customer { max-width: 480px; }
  .arian-customer .arian-boxes { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { .arian-customer * { scroll-behavior: auto !important; transition: none !important; } }
