/*
DocDraft — full-screen authentication layout.
Copyright © 2026 Nazir Magsi. All rights reserved.
Proprietary and confidential. Unauthorized copying, modification or distribution prohibited.
Provided "as is", without warranty of any kind.
*/


.dr-auth-screen * {
  box-sizing:border-box
}
.dr-auth-screen {
  margin:0;
  min-height:100vh;
  font-family:var(--dr-font);
  color:var(--ink);
  background:var(--auth-color-1);
  line-height:1.5
}
.dr-auth-screen button,.dr-auth-screen input {
  font:inherit
}
.dr-auth-screen a {
  color:inherit;
  text-decoration:none
}
.dr-auth-screen a:focus-visible,.dr-auth-screen button:focus-visible,.dr-auth-screen input:focus-visible {
  outline:3px solid var(--auth-color-2);
  outline-offset:3px
}

.login-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(480px,1fr) minmax(420px,.95fr)
}

.login-left {
  display:flex;
  flex-direction:column;
  padding:34px clamp(30px,5.3vw,86px) 24px;
  min-height:100vh
}

.login-brand {
  display:inline-flex;
  gap:12px;
  align-items:center;
  align-self:flex-start;
  font-size:16px;
  font-weight:800;
  letter-spacing:-.03em
}
.login-brand-logo {
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:11px;
  display:grid;
  place-items:center;
  background:var(--dr-white)
}
.login-brand-logo img {
  width:29px;
  height:29px
}
.login-brand small {
  display:block;
  font-size:10px;
  letter-spacing:.09em;
  color:var(--muted);
  text-transform:uppercase;
  font-weight:700
}

.login-form-wrap {
  width:100%;
  max-width:412px;
  margin:auto;
   padding:58px 0 70px
}
.login-overline {
  color:var(--red);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  gap:10px
}
.login-overline:before {
  content:"";
  width:21px;
  height:2px;
  background:var(--red)
}
.dr-auth-screen h1 {
  font-size:clamp(36px,3.7vw,48px);
  font-weight:800;
  letter-spacing:-.055em;
  line-height:1.12;
  margin:18px 0 12px
}
.login-intro {
  color:var(--auth-color-3);
  font-size:14px;
  line-height:1.7;
  margin:0 0 37px
}

.login-field {
  margin-bottom:20px
}
.login-field-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px
}
.login-field label {
  font-size:13px;
  font-weight:750
}
.login-input-wrap {
  position:relative
}
.login-field input {
  height:49px;
  width:100%;
  border:1px solid var(--auth-color-4);
  background:var(--dr-white);
  border-radius:10px;
  padding:0 15px;
  color:var(--ink);
  font-size:14px;
  transition:border-color .15s,box-shadow .15s
}
.login-field input::placeholder {
  color:var(--auth-color-5)
}
.login-field input:hover {
  border-color:var(--auth-color-6)
}
.login-field input:focus {
  outline:none;
  border-color:var(--red);
  box-shadow:0 0 0 3px var(--auth-color-7)
}
.login-input-wrap input {
  padding-right:52px
}
.login-show {
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  width:36px;
  height:36px;
  border-radius:8px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:var(--auth-color-8)
}
.login-show:hover {
  background:var(--soft);
  color:var(--ink)
}
.login-show svg {
  width:19px;
  height:19px
}
.login-aux-link {
  color:var(--auth-color-9);
  font-size:12px;
  font-weight:650
}
.login-aux-link:hover {
  color:var(--red)
}
.login-hint {
  font-size:12px;
  color:var(--auth-color-10);
  margin:7px 0 0
}

.login-options {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin:2px 0 24px
}
.login-remember {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  color:var(--auth-color-11);
  cursor:pointer
}
.login-remember input {
  accent-color:var(--red);
  width:16px;
  height:16px;
  margin:0
}
.login-primary {
  height:49px;
  width:100%;
  border:1px solid var(--red);
  background:var(--red);
  color:var(--auth-color-1);
  border-radius:10px;
  font-size:14px;
  font-weight:760;
  cursor:pointer;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:11px;
  transition:background .15s,transform .15s
}
.login-primary:hover {
  background:var(--red-dark);
  transform:translateY(-1px)
}
.login-primary svg {
  width:17px;
  height:17px
}
.login-message {
  border-radius:10px;
  padding:12px 14px;
  font-size:12px;
  line-height:1.5;
  margin-top:15px;
  display:none
}
.login-message.visible {
  display:block
}
.login-message.error {
  background:var(--auth-color-12);
  border:1px solid var(--auth-color-13);
  color:var(--auth-color-14)
}
.login-message.info {
  background:var(--auth-color-15);
  border:1px solid var(--auth-color-16);
  color:var(--auth-color-17)
}
.login-access-note {
  margin-top:27px;
  border-top:1px solid var(--line);
  padding-top:21px;
  color:var(--auth-color-18);
  font-size:12px;
  line-height:1.6
}
.login-access-note b {
  color:var(--auth-color-19)
}
.login-bottom {
  font-size:11px;
  color:var(--auth-color-20);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap
}
.login-bottom a:hover {
  color:var(--red)
}

.login-right {
  background:radial-gradient(ellipse at 70% 20%,var(--auth-color-21),transparent 45%),linear-gradient(130deg,var(--auth-color-22),var(--auth-color-23));
  border-left:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:80px clamp(35px,5.5vw,100px);
  overflow:hidden
}
.login-right-content {
  width:100%;
  max-width:530px
}
.login-right .login-kicker {
  color:var(--red);
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:.13em;
  font-size:11px
}
.login-right h2 {
  font-size:clamp(32px,3.3vw,49px);
  line-height:1.13;
  letter-spacing:-.055em;
  margin:21px 0 17px;
  font-weight:790
}
.login-right h2 span {
  color:var(--red)
}
.login-right .login-desc {
  font-size:15px;
  color:var(--auth-color-24);
  line-height:1.75;
  max-width:440px;
  margin:0 0 42px
}
.login-document-preview {
  display:grid;
  grid-template-columns:1fr 180px;
  gap:0;
  background:var(--auth-color-1);
  border:1px solid var(--auth-color-25);
  border-radius:16px;
  box-shadow:0 25px 70px var(--auth-color-26);
  overflow:hidden;
  transform:rotate(-1deg)
}
.login-page {
  min-height:300px;
  padding:30px 28px 24px
}
.login-page .login-mini {
  font-size:9px;
  font-weight:800;
  letter-spacing:.1em;
  color:var(--red)
}
.login-page h3 {
  font-size:20px;
  letter-spacing:-.035em;
  margin:25px 0 18px
}
.login-page p {
  font-size:11px;
  line-height:1.8;
  color:var(--auth-color-27)
}
.login-page mark {
  background:var(--auth-color-28);
  color:var(--auth-color-29);
  padding:2px
}
.login-page .login-footer-page {
  margin-top:28px;
  text-align:center;
  color:var(--auth-color-30);
  font-size:9px
}
.login-side {
  border-left:1px solid var(--line);
  background:var(--auth-color-31);
  padding:23px 16px
}
.login-side-head {
  font-size:11px;
  font-weight:800;
  margin-bottom:20px
}
.login-thread {
  border-left:2px solid var(--red);
  padding-left:10px;
  font-size:10px;
  color:var(--auth-color-32);
  line-height:1.6
}
.login-thread strong {
  display:block;
  color:var(--ink);
  font-size:10px;
  margin-bottom:6px
}
.login-approval {
  margin-top:25px;
  border-top:1px solid var(--line);
  padding-top:15px;
  font-size:10px;
  color:var(--green);
  font-weight:750
}
.login-fine {
  font-size:11px;
  color:var(--auth-color-33);
  margin-top:26px
}

@media(max-width:950px) {
  .login-shell {
  grid-template-columns:1fr
}
.login-left {
  min-height:100vh;
  padding:24px 28px
}
.login-right {
  display:none
}
.login-form-wrap {
  max-width:410px
}

}
@media(max-width:480px) {
  .login-left {
  padding:20px 20px 23px
}
.login-form-wrap {
  padding:52px 0 70px
}
.dr-auth-screen h1 {
  font-size:38px
}
.login-bottom {
  font-size:10px
}

}
@media(prefers-reduced-motion:reduce) {
  .login-primary,.login-field input {
  transition:none
}

}


/* The authentication dialog fills the viewport and isolates the private workspace. */
.dr-auth-screen {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  overflow: auto; background: var(--dr-white); color: var(--ink);
}
.dr-auth-screen::backdrop { background: var(--dr-white); }
.dr-auth-screen .login-shell { min-height: 100dvh; }
.dr-auth-screen .login-left { min-height: 100dvh; }
#auth-error:not(:empty) { display: block; }
.login-existing { margin-top: 16px; padding: 8px 0; border: 0; background: transparent; color: var(--red); font-size: 13px; }
.login-primary:disabled { transform: none; cursor: wait; }
.dr-auth-pending > .dr-topbar, .dr-auth-pending > #workspace { visibility: hidden; }
@media (max-width: 480px) {
  .dr-auth-screen h1 { font-size: 36px; }
  .login-brand { font-size: 14px; gap: 8px; }
  .login-brand small { font-size: 8px; }
}
@media print { .dr-auth-screen { display: none !important; } }
