/* ==========================================================================
   DUUKA auth (sign in / sign up)
   Split layout: form column on the left, photo panel on the right.
   ========================================================================== */

:root {
     --da-ink: #0c1424;
     --da-ink-2: #344054;
     --da-muted: #667085;
     --da-faint: #98a2b3;
     --da-line: #e4e7ec;
     --da-line-strong: #d0d5dd;
     --da-surface: #ffffff;
     --da-canvas: #ffffff;
     --da-blue: #0558ee;
     --da-blue-ring: rgba(5, 88, 238, 0.14);
     --da-orange: #f4621f;
     --da-orange-hover: #e0530f;
     --da-radius: 10px;
     --da-font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html,
body.auth-page {
     height: 100%;
}

body.auth-page {
     margin: 0;
     background: var(--da-canvas) !important;
     color: var(--da-ink);
     font-family: var(--da-font) !important;
     font-size: 15px;
     line-height: 1.5;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
     font-feature-settings: "ss01", "cv11";
}

body.auth-page *,
body.auth-page *::before,
body.auth-page *::after {
     box-sizing: border-box;
}

.da-shell {
     min-height: 100vh;
     min-height: 100dvh;
     display: grid;
     grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
     .da-shell {
          grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
     }
}

/* ---------- Form column ---------- */
.da-main {
     display: flex;
     flex-direction: column;
     min-height: 100vh;
     min-height: 100dvh;
     padding: 24px 20px;
}

@media (min-width: 576px) {
     .da-main {
          padding: 32px 48px;
     }
}

.da-top {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
}

.da-logo img {
     height: 48px;
     width: auto;
     display: block;
}

.da-top-link {
     font-size: 14px;
     color: var(--da-muted);
}

.da-top-link a {
     color: var(--da-ink);
     font-weight: 600;
     text-decoration: none;
     margin-left: 4px;
}

.da-top-link a:hover {
     color: var(--da-blue);
}

.da-body {
     flex: 1 1 auto;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 40px 0;
}

.da-form-wrap {
     width: 100%;
     max-width: 392px;
     animation: da-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes da-rise {
     from { opacity: 0; transform: translateY(8px); }
     to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
     .da-form-wrap { animation: none; }
}

.da-title {
     font-size: 28px;
     line-height: 1.2;
     font-weight: 600;
     letter-spacing: -0.025em;
     color: var(--da-ink);
     margin: 0 0 8px;
}

.da-subtitle {
     font-size: 15px;
     color: var(--da-muted);
     margin: 0 0 32px;
}

/* ---------- Fields ---------- */
.da-field {
     margin-bottom: 18px;
}

.da-label-row {
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     gap: 12px;
     margin-bottom: 6px;
}

.da-label {
     display: block;
     font-size: 13.5px;
     font-weight: 500;
     color: var(--da-ink-2);
     margin-bottom: 6px;
}

.da-label-row .da-label {
     margin-bottom: 0;
}

.da-link {
     font-size: 13.5px;
     font-weight: 500;
     color: var(--da-blue);
     text-decoration: none;
}

.da-link:hover {
     color: #0347c4;
     text-decoration: underline;
     text-underline-offset: 3px;
}

body.auth-page .da-input {
     display: block;
     width: 100%;
     height: 44px;
     padding: 0 14px;
     font: inherit;
     font-size: 15px;
     color: var(--da-ink);
     background: var(--da-surface);
     border: 1px solid var(--da-line-strong);
     border-radius: var(--da-radius);
     box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
     transition: border-color 0.15s ease, box-shadow 0.15s ease;
     outline: none;
     -webkit-appearance: none;
     appearance: none;
}

body.auth-page .da-input::placeholder {
     color: var(--da-faint);
     opacity: 1;
}

body.auth-page .da-input:hover {
     border-color: #b9c0cc;
}

body.auth-page .da-input:focus {
     border-color: var(--da-blue);
     box-shadow: 0 0 0 4px var(--da-blue-ring);
}

.da-input-wrap {
     position: relative;
}

.da-input-wrap .da-input {
     padding-right: 46px;
}

body.auth-page .da-eye {
     position: absolute;
     top: 50%;
     right: 6px;
     transform: translateY(-50%);
     width: 34px;
     height: 34px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 0;
     border: 0;
     border-radius: 8px;
     background: transparent;
     color: var(--da-faint);
     font-size: 18px;
     line-height: 1;
     cursor: pointer;
     transition: color 0.15s ease, background-color 0.15s ease;
}

body.auth-page .da-eye:hover {
     color: var(--da-ink-2);
     background: #f2f4f7;
}

body.auth-page .da-eye:focus-visible {
     outline: 2px solid var(--da-blue);
     outline-offset: 1px;
}

.da-hint {
     margin: 6px 0 0;
     font-size: 13px;
     color: var(--da-muted);
}

/* ---------- Button ---------- */
body.auth-page .da-btn {
     position: relative;
     width: 100%;
     height: 46px;
     margin-top: 8px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     font: inherit;
     font-size: 15px;
     font-weight: 600;
     letter-spacing: -0.005em;
     color: #fff;
     background: var(--da-orange);
     border: 1px solid var(--da-orange-hover);
     border-radius: var(--da-radius);
     box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.18),
          0 1px 2px rgba(16, 24, 40, 0.08);
     cursor: pointer;
     transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

body.auth-page .da-btn:hover {
     background: var(--da-orange-hover);
     color: #fff;
}

body.auth-page .da-btn:active {
     transform: translateY(1px);
}

body.auth-page .da-btn:focus-visible {
     outline: none;
     box-shadow: 0 0 0 4px rgba(244, 98, 31, 0.22);
}

body.auth-page .da-btn:disabled {
     opacity: 0.7;
     cursor: progress;
}

body.auth-page .da-btn i {
     font-size: 18px;
     transition: transform 0.15s ease;
}

body.auth-page .da-btn:hover i {
     transform: translateX(2px);
}

.da-legal {
     margin: 16px 0 0;
     font-size: 12.5px;
     line-height: 1.55;
     color: var(--da-muted);
     text-align: center;
}

.da-legal a {
     color: var(--da-ink-2);
     text-decoration: underline;
     text-decoration-color: var(--da-line-strong);
     text-underline-offset: 3px;
}

.da-legal a:hover {
     color: var(--da-ink);
     text-decoration-color: currentColor;
}

.da-switch {
     margin: 28px 0 0;
     padding-top: 24px;
     border-top: 1px solid var(--da-line);
     font-size: 14px;
     color: var(--da-muted);
     text-align: center;
}

.da-switch a {
     color: var(--da-ink);
     font-weight: 600;
     text-decoration: none;
     margin-left: 4px;
}

.da-switch a:hover {
     color: var(--da-blue);
}

.da-foot {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: space-between;
     gap: 8px 16px;
     font-size: 13px;
     color: var(--da-faint);
}

.da-foot nav {
     display: flex;
     gap: 16px;
}

.da-foot a {
     color: var(--da-muted);
     text-decoration: none;
}

.da-foot a:hover {
     color: var(--da-ink);
}

/* ---------- Notices (class names set by page JS) ---------- */
body.auth-page .auth-notice {
     display: flex;
     align-items: flex-start;
     gap: 10px;
     padding: 12px 14px;
     margin-bottom: 20px;
     border-radius: var(--da-radius);
     border: 1px solid;
     font-size: 14px;
     line-height: 1.45;
     animation: da-rise 0.25s ease both;
}

body.auth-page .auth-notice-icon {
     flex-shrink: 0;
     font-size: 18px;
     line-height: 1.1;
}

body.auth-page .auth-notice-content {
     flex: 1;
     min-width: 0;
}

body.auth-page .auth-notice-danger { background: #fef3f2; border-color: #fecdca; color: #b42318; }
body.auth-page .auth-notice-warning { background: #fffaeb; border-color: #fedf89; color: #b54708; }
body.auth-page .auth-notice-info { background: #eff4ff; border-color: #c7d7fe; color: #1849a9; }
body.auth-page .auth-notice-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }

/* ---------- Photo panel ---------- */
.da-aside {
     display: none;
}

@media (min-width: 992px) {
     .da-aside {
          display: block;
          padding: 12px 12px 12px 0;
          position: sticky;
          top: 0;
          height: 100vh;
          height: 100dvh;
     }
}

.da-aside-frame {
     position: relative;
     height: 100%;
     border-radius: 20px;
     overflow: hidden;
     background: #1d2433;
}

.da-aside-frame img {
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: center 30%;
}

.da-aside-frame::after {
     display: none;
     content: "";
     position: absolute;
     inset: 0;
     background: linear-gradient(180deg, rgba(8, 12, 22, 0) 38%, rgba(8, 12, 22, 0.55) 68%, rgba(8, 12, 22, 0.88) 100%);
}

.da-aside-copy {
     position: absolute;
     left: 0;
     right: 0;
     bottom: 0;
     z-index: 1;
     padding: 40px;
     color: #fff;
}

.da-aside-tag {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 5px 10px 5px 8px;
     margin-bottom: 18px;
     border-radius: 999px;
     background: rgba(255, 255, 255, 0.12);
     border: 1px solid rgba(255, 255, 255, 0.18);
     backdrop-filter: blur(8px);
     -webkit-backdrop-filter: blur(8px);
     font-size: 12.5px;
     font-weight: 500;
     color: rgba(255, 255, 255, 0.92);
}

.da-aside-tag::before {
     content: "";
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: #3ddc84;
     box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25);
}

.da-aside-title {
     max-width: 440px;
     margin: 0 0 20px;
     font-size: 30px;
     line-height: 1.18;
     font-weight: 600;
     letter-spacing: -0.025em;
     color: #fff;
}

.da-aside-list {
     list-style: none;
     margin: 0;
     padding: 0;
     display: grid;
     gap: 10px;
}

.da-aside-list li {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 14.5px;
     color: rgba(255, 255, 255, 0.86);
}

.da-aside-list i {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 20px;
     height: 20px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.16);
     font-size: 14px;
     color: #fff;
}

@media (min-width: 992px) and (max-height: 720px) {
     .da-aside-copy { padding: 28px; }
     .da-aside-title { font-size: 24px; }
}

/* ---------- Terms modal (signup) ---------- */
body.auth-page .auth-terms-modal {
     border: 0;
     border-radius: 16px;
     overflow: hidden;
     font-family: var(--da-font);
}

body.auth-page .auth-terms-header {
     border-bottom: 1px solid var(--da-line);
     padding: 20px 24px;
}

body.auth-page .auth-terms-eyebrow {
     font-size: 12px;
     font-weight: 600;
     letter-spacing: 0.06em;
     text-transform: uppercase;
     color: var(--da-muted);
}

body.auth-page .auth-terms-body {
     padding: 24px;
     color: var(--da-ink-2);
     font-size: 14.5px;
}

body.auth-page .auth-terms-body h6 {
     margin-top: 20px;
     font-weight: 600;
     color: var(--da-ink);
}

body.auth-page .auth-terms-updated {
     font-size: 13px;
     color: var(--da-muted);
}

body.auth-page .auth-terms-footer {
     border-top: 1px solid var(--da-line);
     padding: 16px 24px;
}

body.auth-page .auth-terms-footer .da-btn {
     width: auto;
     height: 40px;
     margin: 0;
     padding: 0 18px;
}

body.auth-page .auth-terms-header .btn-close {
     filter: none;
}

/* Phones and tablets: photo sits under the form, above the footer */
@media (max-width: 991.98px) {
     .da-shell { align-content: start; }
     .da-main { display: contents; }
     .da-top { order: 1; padding: 24px 20px 0; }
     .da-body { order: 2; padding: 48px 20px 12px; }
     .da-aside { order: 3; display: block; padding: 28px 20px 0; }
     .da-foot { order: 4; padding: 24px 20px; }
     .da-aside-frame { height: auto; aspect-ratio: 4 / 3; border-radius: 18px; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
     .da-top, .da-foot { padding-left: 48px; padding-right: 48px; }
     .da-aside { padding-left: 48px; padding-right: 48px; }
     .da-aside-frame { aspect-ratio: 16 / 9; max-width: 720px; margin: 0 auto; }
}
