:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #17151f;
  background: #f7f6fb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr); }
.login-visual { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 18% 17%, rgba(163,136,255,.4), transparent 30%), radial-gradient(circle at 88% 80%, rgba(89,222,196,.18), transparent 27%), linear-gradient(145deg, #261c55 0%, #5139a8 57%, #6d52d5 100%); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.login-visual::before { width: 460px; height: 460px; right: -170px; top: -140px; }
.login-visual::after { width: 620px; height: 620px; left: -350px; bottom: -420px; }
.visual-content { position: relative; z-index: 1; min-height: 100vh; padding: 52px clamp(42px, 7vw, 110px); display: flex; flex-direction: column; }
.brand, .mobile-brand { display: inline-flex; width: fit-content; flex-direction: column; align-items: flex-start; gap: 5px; color: inherit; text-decoration: none; }
.resetshop-logo { display: block; width: clamp(220px, 22vw, 285px); height: auto; object-fit: contain; }
.portal-name { margin-left: 66px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: 2.1px; text-transform: uppercase; }
.visual-copy { margin: auto 0; max-width: 610px; }
.eyebrow { color: #8c76ee; font-size: 12px; font-weight: 800; letter-spacing: 1.8px; }
.login-visual .eyebrow { color: #cec3ff; }
.visual-copy h1 { margin: 18px 0 24px; font: 800 clamp(42px, 5vw, 67px)/1.05 "Manrope", sans-serif; letter-spacing: -3px; }
.visual-copy p { max-width: 530px; margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.75); }
.security-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.72); }
.security-note span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #2b2159; background: #8ee4ca; font-weight: 800; }

.login-panel { display: grid; place-items: center; padding: 40px; background: linear-gradient(180deg, #fbfaff, #f6f4fb); }
.login-card { width: min(100%, 430px); }
.mobile-brand { display: none; margin-bottom: 40px; padding: 13px 18px 12px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #261c55, #5139a8); box-shadow: 0 14px 32px rgba(51,35,111,.18); }
.mobile-brand .resetshop-logo { width: min(250px, 68vw); }
.mobile-brand .portal-name { margin-left: 55px; }
.form-heading { margin-bottom: 32px; }
.form-heading h2 { margin: 9px 0 9px; font: 800 32px/1.2 "Manrope", sans-serif; letter-spacing: -1px; }
.form-heading p { margin: 0; color: #746f7e; line-height: 1.55; }
form > label, .setup-only label { display: grid; gap: 8px; margin-bottom: 20px; font-size: 13px; font-weight: 700; color: #474150; }
input { width: 100%; min-height: 52px; border: 1px solid #ddd8e7; border-radius: 13px; padding: 0 15px; color: #17151f; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: #7357e8; box-shadow: 0 0 0 4px rgba(115,87,232,.12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 82px; }
.show-password { position: absolute; right: 9px; top: 9px; height: 34px; padding: 0 9px; border: 0; border-radius: 8px; color: #654acb; background: #f1edff; font-size: 12px; font-weight: 700; cursor: pointer; }
.password-help { margin: -9px 0 20px; color: #7d7788; font-size: 12px; line-height: 1.5; }
.form-error { margin: 2px 0 18px; padding: 12px 14px; border: 1px solid #f4c8cf; border-radius: 11px; color: #9d2d40; background: #fff2f4; font-size: 13px; }
.submit-button { width: 100%; min-height: 53px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #7357e8, #5d42c5); box-shadow: 0 14px 30px rgba(93,66,197,.24); font-weight: 800; cursor: pointer; transition: transform .15s, opacity .2s; }
.submit-button:hover { transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.loading-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 16px; color: #706a7a; }
.loading-state p { margin: 0; }
.spinner { width: 34px; height: 34px; border: 3px solid #e4dff0; border-top-color: #7357e8; border-radius: 50%; animation: spin .8s linear infinite; }
.login-footer { margin: 30px 0 0; text-align: center; color: #9993a3; font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .login-layout { display: block; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 22px; }
  .mobile-brand { display: inline-flex; }
}
