:root {
    --qrma-primary: #0d9f65;
    --qrma-primary-dark: #087a4d;
    --qrma-primary-soft: #edf8f3;
    --qrma-text: #17231d;
    --qrma-muted: #6b7771;
    --qrma-border: #e1e9e5;
    --qrma-surface: #ffffff;
    --qrma-page: #f4f7f5;
    --qrma-danger: #b83243;
    --qrma-shadow: 0 28px 80px rgba(20, 58, 39, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body.qrma-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(13, 159, 101, .10), transparent 28%),
        linear-gradient(180deg, #fbfcfb 0%, var(--qrma-page) 100%);
    color: var(--qrma-text);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.qrma-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 36px 20px;
}

.qrma-card {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(360px, 1fr);
    width: min(1080px, 100%);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(220, 231, 225, .9);
    border-radius: 30px;
    background: var(--qrma-surface);
    box-shadow: var(--qrma-shadow);
}

.qrma-form-side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 34px 44px 28px;
}

.qrma-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 42px;
}

.qrma-logo img { display: block; width: 190px; max-width: 100%; height: auto; }
.qrma-account-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cce9da;
    border-radius: 999px;
    background: var(--qrma-primary-soft);
    color: var(--qrma-primary-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.qrma-content { width: 100%; max-width: 430px; margin: auto 0; }
.qrma-title { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.qrma-subtitle { margin: 12px 0 30px; color: var(--qrma-muted); font-size: 14px; line-height: 1.75; }

.qrma-field { margin-bottom: 20px; }
.qrma-label-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.qrma-label { color: var(--qrma-text); font-size: 13px; font-weight: 800; }
.qrma-inline-link { color: var(--qrma-primary-dark); font-size: 12px; font-weight: 800; text-decoration: none; }

.qrma-input-wrap { position: relative; }
.qrma-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--qrma-border);
    border-radius: 14px;
    outline: 0;
    background: #fff;
    color: var(--qrma-text);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.qrma-input::placeholder { color: #a0aba5; }
.qrma-input:focus { border-color: rgba(13, 159, 101, .65); box-shadow: 0 0 0 4px rgba(13, 159, 101, .10); }
.qrma-input.has-toggle { padding-inline-end: 52px; }
.qrma-password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
    background: transparent;
    color: var(--qrma-muted);
    cursor: pointer;
    font-size: 17px;
}

.qrma-check { display: flex; align-items: flex-start; gap: 9px; color: var(--qrma-muted); font-size: 12px; line-height: 1.6; }
.qrma-check + .qrma-check { margin-top: 10px; }
.qrma-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--qrma-primary); }
.qrma-check a { color: var(--qrma-primary-dark); font-weight: 700; }

.qrma-button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 0 20px;
    border: 1px solid var(--qrma-primary);
    border-radius: 14px;
    background: var(--qrma-primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.qrma-button:hover { background: var(--qrma-primary-dark); box-shadow: 0 12px 28px rgba(13, 159, 101, .20); transform: translateY(-1px); }
.qrma-button-link { width: auto; min-height: auto; margin: 0; padding: 0; border: 0; background: transparent; color: var(--qrma-primary-dark); }

.qrma-alert { margin-bottom: 22px; padding: 13px 15px; border: 1px solid; border-radius: 13px; font-size: 13px; font-weight: 650; line-height: 1.55; }
.qrma-alert-success { border-color: #c6ead8; background: #ecfaf3; color: #086441; }
.qrma-alert-warning { border-color: #f0deb0; background: #fff9e9; color: #7a5905; }
.qrma-alert-error { border-color: #f1c8ce; background: #fff2f4; color: #a12c3a; }

.qrma-code-input { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: .28em; }
.qrma-resend { margin-top: 14px; text-align: center; }
.qrma-resend button { border: 0; background: transparent; color: var(--qrma-primary-dark); cursor: pointer; font-weight: 800; }

.qrma-footer { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--qrma-border); color: var(--qrma-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.qrma-footer a { color: var(--qrma-primary-dark); font-weight: 800; text-decoration: none; }

.qrma-visual {
    position: relative;
    display: flex;
    min-height: 100%;
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(7, 74, 48, .32), rgba(10, 109, 70, .14)),
        url("../vendor/web/images/hero-image.jpg") center/cover no-repeat;
}
.qrma-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(3, 34, 22, .03) 20%, rgba(3, 39, 25, .80) 100%);
}
.qrma-visual-overlay { position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; }
.qrma-visual-content { position: relative; z-index: 2; max-width: 520px; padding: 56px; color: #fff; }
.qrma-visual-kicker { display: inline-block; margin-bottom: 16px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.qrma-visual h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
.qrma-visual p { margin: 18px 0 0; color: rgba(255,255,255,.84); font-size: 15px; line-height: 1.75; }

@media (max-width: 900px) {
    .qrma-page { padding: 0; place-items: stretch; }
    .qrma-card { grid-template-columns: 1fr; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .qrma-form-side { padding: 28px max(20px, 6vw) 24px; }
    .qrma-header { margin-bottom: 34px; }
    .qrma-content { max-width: 520px; margin: 0 auto; }
    .qrma-visual { display: none; }
    .qrma-footer { max-width: 520px; width: 100%; margin-inline: auto; }
}

@media (max-width: 520px) {
    .qrma-header { align-items: flex-start; flex-direction: column; gap: 14px; }
    .qrma-logo img { width: 172px; }
    .qrma-account-badge { min-height: 32px; }
    .qrma-title { font-size: 30px; }
}
