/* /enter (tmpl/front/enter.tpl) and /remember: the login pages. Colours follow the app's login screens. */
.enter-login{--el-green:#3E7352;--el-green-dark:#2d5740;--el-text:#1E2D3A;--el-muted:#4A5B6A;--el-line:#CBD5CF;--el-soft:#E4EBE7;--el-error:#B04545;
  max-width:440px;margin:24px auto 48px;padding:0 16px;box-sizing:border-box;color:var(--el-text);font-size:16px;line-height:1.4}
.enter-login *{box-sizing:border-box}
.enter-login [hidden]{display:none!important}
.el-card{position:relative;background:#fff;border:1px solid var(--el-soft);border-radius:16px;padding:28px 28px 24px;display:flex;flex-direction:column;box-shadow:0 8px 24px rgba(30,45,58,.06)}
.el-title{margin:0;font-size:24px;line-height:30px;font-weight:700;text-align:center;color:var(--el-text)}
.el-sub{margin:8px 0 20px;font-size:15px;line-height:21px;text-align:center;color:var(--el-muted);overflow-wrap:anywhere}
.el-title+.el-form,.el-title+.el-banner,.el-title+.el-switch,.el-title+.el-forms{margin-top:20px}
.el-banner+.el-form,.el-banner+.el-switch,.el-banner+.el-forms{margin-top:14px}
/* /enter is one card whose content changes in place (Ruslan, 17 November 2026: "Polish also transition
   from one step to another and back on login page - should be smooth with no laggs"): the login and the
   code are steps in one grid cell, and so are the password and the email forms. While enter-login.js
   swaps them, both show for a moment, each at its own height, and the card glides between them. */
.el-shell{display:grid;align-items:start}
.el-shell>.el-step,.el-forms>.el-form{grid-area:1/1;min-width:0}
.el-step{position:relative;display:flex;flex-direction:column}
.el-forms{display:grid;align-items:start}
/* «С паролем» | «Код на почту» (Ruslan, 17 November 2026): a segmented switch over the fields, the
   picked half white on the soft green track. */
/* The white thumb slides under the picked half (17 November 2026), as iOS's segmented control does. */
.el-switch{position:relative;display:flex;gap:4px;padding:4px;border-radius:14px;background:#EEF3F0;border:1px solid var(--el-soft)}
.el-switch::before{content:"";position:absolute;top:4px;bottom:4px;left:4px;width:calc(50% - 6px);border-radius:10px;background:#fff;box-shadow:0 1px 3px rgba(30,45,58,.12),0 0 0 .5px rgba(30,45,58,.06);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.el-switch[data-mode="code"]::before{transform:translateX(calc(100% + 4px))}
.el-switch-option{position:relative;z-index:1;flex:1 1 0;min-width:0;height:38px;border:0;border-radius:10px;background:transparent;color:var(--el-muted);font:inherit;font-size:14.5px;font-weight:600;cursor:pointer;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s;-webkit-tap-highlight-color:transparent}
.el-switch-option:hover{color:var(--el-text)}
.el-switch-option.is-on{color:var(--el-green)}
.el-switch+.el-form,.el-switch+.el-form[hidden]+.el-form,.el-switch+.el-forms{margin-top:16px}
@media (prefers-reduced-motion:reduce){.el-switch-option,.el-switch::before{transition:none}}
/* A failed password (auth.php's ?er=N): a soft red note over the fields. */
.el-banner{margin:0;padding:10px 14px;border-radius:10px;background:#FBEEEE;color:var(--el-error);font-size:14px;line-height:19px;text-align:center}
/* The back arrow in the corner of the code and password-reset cards. */
.el-back{position:absolute;top:23px;left:14px;width:40px;height:40px;border-radius:20px;border:0;padding:0;background:transparent;color:var(--el-text);display:flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent}
.el-back:hover,.el-back:focus-visible{background:var(--el-soft);color:var(--el-text)}
.el-back~.el-title{padding:0 34px}
/* On /enter the arrow sits in its step, which slides; the same place in the card. */
.el-step>.el-back{top:-5px;left:-14px}
.el-alts{display:flex;flex-direction:column;gap:10px;align-items:stretch;margin-top:14px}
.el-alt{height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;gap:10px;font:inherit;font-size:15px;font-weight:600;width:100%;border:1px solid var(--el-line);background:#fff;color:var(--el-text);cursor:pointer;padding:0 16px}
.el-apple{background:#000;color:#fff;border-color:#000}
.el-apple:hover,.el-apple:focus-visible{background:#222}
.el-google{min-height:44px;display:flex;justify-content:center}
.el-form{display:flex;flex-direction:column;margin:0}
.el-label{font-size:13px;color:#5A6B7A;margin:0 0 6px;font-weight:500}
.el-label.el-center{text-align:center}
.el-label.el-gap{margin-top:12px}
.el-input{height:46px;border:1px solid var(--el-line);border-radius:10px;padding:0 14px;font:inherit;font-size:16px;background:#fff;color:var(--el-text);width:100%}
.el-input:focus{outline:none;border:2px solid var(--el-green);padding:0 13px}
.el-input[aria-invalid="true"]{border-color:var(--el-error)}
/* name@example.com in an empty email field (Ruslan, 17 November 2026), light so it reads as an example. */
.el-input::placeholder{color:#9AA7B2;opacity:1}
/* The password with its show/hide eye. */
.el-password{position:relative}
.el-password .el-input{padding-right:48px}
.el-password .el-input:focus{padding-right:47px}
.el-eye{position:absolute;top:0;right:0;width:48px;height:46px;border:0;padding:0;background:none;color:#7A8A97;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:0 10px 10px 0}
.el-eye:hover{color:var(--el-text)}
.el-eye .el-eye-shut,.el-eye[aria-pressed="true"] .el-eye-open{display:none}
.el-eye[aria-pressed="true"] .el-eye-shut{display:block}
.el-password input::-ms-reveal{display:none}
/* «Запомнить меня» and «Забыли пароль?» on one row under the password. */
.el-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;min-height:24px}
.el-consent.el-remember{font-size:14px;line-height:18px;gap:8px}
.el-forgot{font-size:14px;line-height:18px;color:var(--el-green);text-decoration:none;white-space:nowrap}
.el-forgot:hover{color:var(--el-green-dark);text-decoration:underline}
.el-row~.el-btn{margin-top:16px}
/* «или» between the password and Apple / Google. */
.el-or{display:flex;align-items:center;gap:12px;margin:22px 0 2px;color:#7A8A97;font-size:13px;line-height:16px}
.el-or::before,.el-or::after{content:"";flex:1;height:1px;background:var(--el-soft)}
/* The code: four boxes as in the app (54x60, the mockup's site size). The real field lies over them,
   invisible, and the script draws its digits into the boxes. */
.el-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.el-cells{position:relative;align-self:center;display:flex;gap:10px;margin:2px 0 0}
.el-cells .el-code{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:12px;background:transparent;
  color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;font-size:16px;letter-spacing:0;text-align:left;opacity:.01;z-index:1;cursor:text}
.el-cells .el-code:focus{border:0;padding:0;outline:none}
.el-cells .el-code::selection{background:transparent}
.el-cell{position:relative;width:54px;height:60px;border-radius:12px;background:#fff;border:1.5px solid var(--el-soft);display:flex;align-items:center;justify-content:center;
  font-size:26px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;color:var(--el-text);transition:border-color .15s,box-shadow .15s}
.el-cell.is-active{border-color:var(--el-green);box-shadow:inset 0 0 0 .5px var(--el-green)}
.el-cell.is-active:empty::after{content:"";width:2px;height:26px;border-radius:1px;background:var(--el-green);animation:el-blink 1s steps(1) infinite}
.el-digit{display:block;animation:el-pop .26s cubic-bezier(.3,1.4,.6,1) both}
.el-cells.is-error .el-cell{border-color:var(--el-error);box-shadow:none;color:var(--el-error)}
.el-cells.is-error{animation:el-shake .45s}
.el-cells.is-success .el-cell{border-color:var(--el-green)}
.el-cells~.el-error{text-align:center}
@keyframes el-blink{50%{opacity:0}}
@keyframes el-pop{from{opacity:0;transform:translateY(14px) scale(.5)}to{opacity:1;transform:none}}
@keyframes el-shake{0%,100%{transform:none}10%{transform:translateX(-10px)}30%,70%{transform:translateX(10px)}50%,90%{transform:translateX(-10px)}}
@media (prefers-reduced-motion:reduce){.el-digit,.el-cells.is-error,.el-cell.is-active:empty::after{animation:none}}
@media (max-width:360px){.el-cells{gap:8px}.el-cell{width:50px;height:58px}}
/* «Запомнить меня»: an 18px box in the app's green in the middle of its words (the login's checkbox
   style of 16 November 2026, kept for this one box). */
.el-consent{position:relative;display:flex;align-items:center;gap:10px;font-size:12px;line-height:14.5px;color:var(--el-muted);cursor:pointer;-webkit-tap-highlight-color:transparent}
.el-consent input{position:absolute;top:50%;left:0;width:18px;height:18px;margin:-9px 0 0;opacity:0;cursor:pointer}
.el-box{flex:none;width:18px;height:18px;border:1.5px solid var(--el-line);border-radius:5px;background:#fff;color:#fff;display:flex;align-items:center;justify-content:center;transition:background-color .15s,border-color .15s,box-shadow .15s}
.el-tick{opacity:0;transform:scale(.4);transition:opacity .15s,transform .2s cubic-bezier(.3,1.4,.6,1)}
.el-consent:hover .el-box{border-color:var(--el-green)}
.el-consent input:checked+.el-box{background:var(--el-green);border-color:var(--el-green)}
.el-consent input:checked+.el-box .el-tick{opacity:1;transform:none}
.el-consent input:focus-visible+.el-box{outline:3px solid rgba(62,115,82,.35);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.el-tick{transition:none}}
/* «Входя, вы принимаете Условия использования и Политику конфиденциальности» under everything, small
   and quiet, the links underlined (Ruslan, 17 November 2026, instead of the checkboxes; his reference
   was Resend's login). */
.el-legal{margin:22px 0 0;font-size:12.5px;line-height:17px;text-align:center;color:#5A6B7A;text-wrap:balance}
.el-legal a{color:var(--el-text);text-decoration:underline;text-decoration-color:rgba(74,91,106,.45);text-underline-offset:2px}
.el-legal a:hover{color:var(--el-green-dark);text-decoration-color:currentColor}
.el-note{margin:8px 0 0;font-size:13px;line-height:18px;color:#5A6B7A}
.el-note a,.el-small a{color:var(--el-green);text-decoration:none}
.el-note a:hover,.el-small a:hover{color:var(--el-green-dark);text-decoration:underline}
.el-error{margin:10px 0 0;font-size:14px;line-height:19px;color:var(--el-error)}
/* Apple's or Google's error, between «или» and the buttons. */
.el-card>.el-error{margin:10px 0 0}
.el-btn{margin-top:14px;height:46px;border-radius:23px;background:var(--el-green);color:#fff;font:inherit;font-size:16px;font-weight:600;border:0;width:100%;cursor:pointer}
.el-btn:hover,.el-btn:focus-visible{background:var(--el-green-dark)}
.el-btn[disabled]{opacity:.6;cursor:default}
.el-alts+.el-btn{margin-top:10px}
.el-small{margin:16px 0 0;font-size:14px;line-height:19px;text-align:center;color:#5A6B7A}
.el-small.el-tight{margin-top:8px}
.el-link{background:none;border:0;padding:0;font:inherit;color:var(--el-green);cursor:pointer}
.el-link:hover{color:var(--el-green-dark);text-decoration:underline}
.el-link[disabled]{color:#5A6B7A;cursor:default;text-decoration:none}
.el-check{display:flex;align-items:center;gap:8px;margin:12px 0 0;font-size:14px;color:var(--el-muted)}
/* /remember: the code picture beside its field, and a link drawn as the green button. */
.el-captcha{display:flex;align-items:center;gap:12px}
.el-picture{flex:none;width:96px;height:46px;padding:7px 17px;border:1px solid var(--el-line);border-radius:10px;background:#fff}
.el-captcha .el-input{flex:1;min-width:0;letter-spacing:.2em}
a.el-btn{display:flex;align-items:center;justify-content:center;text-decoration:none}
a.el-btn:hover,a.el-btn:focus-visible{color:#fff;text-decoration:none}
.enter-login :focus-visible{outline:3px solid rgba(62,115,82,.35);outline-offset:2px}
.enter-login .el-input:focus-visible{outline:none}
@media (max-width:480px){.el-card{padding:22px 18px 20px}.enter-login{margin-top:12px}.el-back{top:17px;left:8px}.el-step>.el-back{top:-5px;left:-10px}}
