/* Auth pages based on the supplied Zapinho SaaS reference. */
.auth-reference-page {
    min-height: 100vh;
    color: #1f2937;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

.auth-reference-page a { text-decoration: none; }

.auth-reference-login { background: #fff; }
.auth-login-shell { display: flex; min-height: 100vh; flex-direction: column; }
.auth-login-brand-panel,
.auth-login-form-panel { width: 100%; }

.auth-login-brand-panel {
    position: relative;
    display: none;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 64px clamp(42px, 8vw, 96px);
    isolation: isolate;
    background: #063b2f;
    color: #fff;
}

.auth-login-brand-panel::before,
.auth-login-brand-panel::after {
    position: absolute;
    z-index: -1;
    width: 384px;
    height: 384px;
    border-radius: 50%;
    content: "";
    filter: blur(128px);
    mix-blend-mode: multiply;
}

.auth-login-brand-panel::before { top: -10%; right: -10%; background: #f05a41; opacity: .4; }
.auth-login-brand-panel::after { bottom: -10%; left: -10%; background: #10b981; opacity: .2; }

.auth-ref-brand {
    position: relative;
    z-index: 1;
    margin: 0 0 32px;
    color: #fff;
    font-size: clamp(42px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1;
}

.auth-login-brand-panel h1 {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.auth-login-brand-panel > p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 0 44px;
    color: #d1d5db;
    font-size: 18px;
}

.auth-reference-proof {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #d1d5db;
    font-size: 14px;
}

.auth-reference-avatars { display: flex; padding-left: 12px; }
.auth-reference-avatars img {
    width: 40px;
    height: 40px;
    margin-left: -12px;
    border: 2px solid #063b2f;
    border-radius: 50%;
    object-fit: cover;
}

.auth-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 32px;
    background: #fff;
}

.auth-reference-form-wrap { width: min(100%, 448px); }
.auth-reference-form-wrap h2 {
    margin: 0 0 8px;
    color: #063b2f;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.auth-reference-lead { margin: 0 0 32px; color: #6b7280; font-size: 17px; }
.auth-reference-form { display: grid; gap: 22px; }
.auth-reference-field { display: grid; gap: 8px; }
.auth-reference-field label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.auth-reference-input {
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    outline: 0;
    background: #f9fafb;
    color: #1f2937;
    font: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-reference-input::placeholder { color: #9ca3af; }
.auth-reference-input:focus {
    border-color: #063b2f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 59, 47, .2);
}

.auth-reference-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-reference-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
    font-size: 14px;
}

.auth-reference-check input,
.auth-reference-terms input {
    width: 16px;
    height: 16px;
    accent-color: #063b2f;
}

.auth-reference-link { color: #f05a41; font-size: 14px; font-weight: 500; }
.auth-reference-link:hover { color: #c2412d; }

.auth-reference-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: #f05a41;
    box-shadow: 0 12px 24px rgba(240, 90, 65, .24);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    transition: transform .2s, background .2s, box-shadow .2s;
}

.auth-reference-button:hover {
    background: #e64f37;
    box-shadow: 0 16px 30px rgba(240, 90, 65, .32);
    transform: translateY(-2px);
}

.auth-reference-button svg,
.auth-reference-button i { width: 20px; height: 20px; }
.auth-reference-switch { margin: 28px 0 0; color: #6b7280; text-align: center; font-size: 15px; }
.auth-reference-switch a { color: #063b2f; font-weight: 700; }
.auth-reference-switch a:hover { text-decoration: underline; }

.auth-reference-error {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
}

.auth-reference-register {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 16px;
    background: #f3f4f6;
}

.auth-register-shell {
    display: flex;
    width: min(100%, 1152px);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

.auth-register-form-side { width: 60%; padding: 48px 56px; background: #fff; }
.auth-reference-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: #6b7280;
    font-size: 14px;
}

.auth-reference-back:hover { color: #063b2f; }
.auth-reference-back svg,
.auth-reference-back i { width: 16px; height: 16px; }
.auth-register-form-side h2 { margin-bottom: 8px; }
.auth-register-form-side .auth-reference-lead { margin-bottom: 30px; }
.auth-register-form { gap: 28px; }
.auth-reference-section-title {
    margin: 0 0 14px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.auth-reference-grid .auth-reference-field:first-child { grid-column: 1 / -1; }
.auth-reference-security { display: grid; gap: 14px; }
.auth-reference-terms { display: flex; align-items: flex-start; gap: 8px; color: #6b7280; font-size: 13px; }
.auth-reference-terms input { flex: 0 0 16px; margin-top: 2px; }
.auth-reference-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -12px 0 0;
    color: #9ca3af;
    font-size: 12px;
}

.auth-reference-secure-note svg,
.auth-reference-secure-note i { width: 15px; height: 15px; }
.auth-register-summary {
    position: relative;
    display: flex;
    width: 40%;
    min-height: 620px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 44px;
    background: #063b2f;
    color: #fff;
}

.auth-register-summary::before {
    position: absolute;
    inset: 0;
    opacity: .1;
    background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
    background-size: 24px 24px;
    content: "";
}

.auth-register-summary > * { position: relative; z-index: 1; }
.auth-register-summary h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 32px;
    color: #fff;
    font-size: 24px;
}

.auth-register-summary-mark {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: #f05a41;
    font-size: 16px;
}

.auth-register-summary-card {
    margin-bottom: 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(5px);
}

.auth-register-summary-card p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.auth-register-summary-card strong { display: block; margin-bottom: 6px; color: #fff; font-size: 20px; }
.auth-reference-benefits { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.auth-reference-benefits li { display: flex; align-items: flex-start; gap: 10px; color: #d1d5db; font-size: 14px; }
.auth-reference-benefits svg,
.auth-reference-benefits i { width: 18px; height: 18px; flex: 0 0 18px; color: #f05a41; }
.auth-reference-summary-foot { color: rgba(255, 255, 255, .7); font-size: 13px; }
.auth-reference-summary-foot strong { color: #fff; }

@media (min-width: 960px) {
    .auth-login-shell { flex-direction: row; }
    .auth-login-brand-panel,
    .auth-login-form-panel { width: 50%; }
    .auth-login-brand-panel { display: flex; }
}

@media (max-width: 860px) {
    .auth-register-shell { flex-direction: column; }
    .auth-register-form-side,
    .auth-register-summary { width: 100%; }
    .auth-register-summary { min-height: auto; order: -1; }
}

@media (max-width: 600px) {
    .auth-login-form-panel { padding: 36px 22px; }
    .auth-reference-form-wrap h2 { font-size: 28px; }
    .auth-reference-check-row { align-items: flex-start; flex-direction: column; gap: 10px; }
    .auth-register-form-side { padding: 32px 22px 40px; }
    .auth-register-summary { padding: 34px 22px; }
    .auth-reference-grid { grid-template-columns: 1fr; }
    .auth-reference-grid .auth-reference-field:first-child { grid-column: auto; }
}

.auth-register-page-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 16px;
    background: #f3f4f6;
}

.auth-register-shell-simple {
    width: min(100%, 640px);
    padding: 48px 56px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

.auth-register-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.auth-register-benefits-row li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.auth-register-benefits-row svg,
.auth-register-benefits-row i { width: 16px; height: 16px; color: #16a34a; flex-shrink: 0; }

.auth-reference-strength-meter { display: flex; gap: 4px; margin-top: 2px; }
.auth-reference-strength-meter span { flex: 1; height: 4px; border-radius: 2px; background: #e5e7eb; transition: background .2s; }

@media (max-width: 600px) {
    .auth-register-shell-simple { padding: 34px 22px; border-radius: 16px; }
}
