/* Darasa: sign-in, sign-up and password pages (View::need('auth')).
   A white form card overlapping a solid panel in the institution's colour. Flat: no gradients,
   no images; the panel's shapes are two plain circles in a darker shade of the same colour. */

.plain__main--auth { max-width: 940px; }
.plain__main--auth-wide { max-width: 1120px; }

.auth-split { display: flex; flex-direction: column; gap: 1rem; }

.auth-split .auth-card { position: relative; z-index: 1; padding: 1.75rem 1.5rem; border-radius: 6px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .08), 0 1px 3px rgba(17, 24, 39, .06); }
.auth-logo { text-align: center; margin: 0 0 1.25rem; }
.auth-logo img { display: inline-block; width: 15rem; max-width: 100%; height: auto; }
.auth-split--wide .auth-logo img { width: 17rem; }
.auth-card__title { text-align: center; margin-bottom: 1.25rem; }
.auth-card__title h1 { display: inline-block; font-size: 1.35rem; margin: 0; padding-bottom: .25rem; border-bottom: 2px solid currentColor; }
.auth-card__title p { margin: .6rem 0 0; }

/* Fields with an icon inside and a coloured edge, like the design. Labels stay visible above. */
.auth-field { position: relative; }
.auth-field > .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.auth-field .input { padding-left: 2.9rem; border-left: 3px solid var(--primary); border-radius: 4px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .06); min-height: 48px; }
.auth-field .input:focus { border-left-color: var(--primary-dark); }
.auth-field--with-btn .input { padding-right: 5.5rem; }
.auth-field--with-btn .btn { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); }

.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1rem; margin: .25rem 0 1.25rem; font-size: .9rem; }
.auth-row a { font-weight: 600; color: var(--ink); }
.auth-submit { display: flex; justify-content: center; }
.auth-submit .btn { min-width: 11rem; }
.auth-card .auth-card__links { margin-top: 1.25rem; }

/* The welcome panel. */
.auth-panel { position: relative; overflow: hidden; border-radius: 6px; padding: 2rem 1.5rem; text-align: center;
  background: var(--primary); color: var(--on-primary); }
.auth-panel::before, .auth-panel::after { content: ""; position: absolute; border-radius: 50%; background: var(--primary-dark); opacity: .55; }
.auth-panel::before { width: 22rem; height: 22rem; right: -9rem; top: -11rem; }
.auth-panel::after { width: 26rem; height: 18rem; left: -6rem; bottom: -12rem; }
.auth-panel__body { position: relative; z-index: 1; max-width: 22rem; margin: 0 auto; }
.auth-panel h2 { font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 .5rem; color: inherit; }
.auth-panel p { margin: 0 0 1.25rem; color: inherit; }
.auth-panel ul { text-align: left; margin: 0 0 1.25rem; padding-left: 1.2rem; }
.auth-panel li { margin: .3rem 0; }
.auth-panel .btn { background: #fff; color: var(--primary-ink); border-color: #fff; font-weight: 700; }
.auth-panel .btn:hover { background: #f3f4f6; }
.auth-panel a:not(.btn) { color: inherit; font-weight: 700; }

/* Side by side from tablet width: the card overlaps the taller panel. */
@media (min-width: 860px) {
  /* Stretch: the panel is always 2.5rem taller than the card at the top and bottom, as in the design. */
  .auth-split { flex-direction: row; align-items: stretch; gap: 0; }
  .auth-split .auth-card { flex: 0 0 23rem; margin: 2.5rem -2.5rem 2.5rem 0; padding: 2.25rem 2rem; }
  .auth-panel { flex: 1 1 auto; min-height: 28rem; display: flex; align-items: center; justify-content: center; padding: 3rem 2.5rem 3rem 5rem; }
  .auth-split--wide { align-items: flex-start; }
  .auth-split--wide .auth-card { flex: 0 1 40rem; margin-top: 2.5rem; }
  .auth-split--wide .auth-panel { position: sticky; top: 1.5rem; min-height: 34rem; }
}

/* The long sign-up form keeps plain fields, with the same coloured edge as the sign-in fields. */
.auth-split--wide .auth-card .input { border-left: 3px solid var(--primary); }
.auth-panel .btn { white-space: normal; }

/* Setup wizard: the server checks in the panel, and the next steps after installing. */
.setup-checks { list-style: none; padding: 0; text-align: left; }
.setup-checks__item { display: flex; gap: .5rem; align-items: flex-start; margin: .55rem 0; font-size: .92rem; }
.setup-checks__item > .icon { flex: 0 0 auto; margin-top: .15rem; }
.setup-checks__state { font-weight: 700; }
.setup-steps { padding-left: 1.3rem; }
.setup-steps > li { margin: .6rem 0; }
.setup-cron { list-style: none; padding: 0; margin: .4rem 0 0; }
.setup-cron li { margin: .25rem 0; overflow-wrap: anywhere; }
.setup-cron code { font-size: .8rem; }
.auth-card h2 { font-size: 1.1rem; margin: 1.25rem 0 .25rem; }
