/* ============================================================
   Diilzo — Registration page (3-step wizard redesign)
   Fits laptop, desktop, and mobile cleanly.
   ============================================================ */

.dzr-page {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 100vh;
    background: #f5f5f7;
}

/* ── Left branding panel ─────────────────────────────────────── */
.dzr-brand-panel {
    background: linear-gradient(160deg, #0A2E1A 0%, #2b1f3a 45%, #32C700 130%);
    color: #fff;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.dzr-brand-panel::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.35), transparent 70%);
}

.dzr-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.25), transparent 70%);
}

.dzr-brand-content {
    position: relative;
    z-index: 2;
}

/* Brand logo — image-based */
.dzr-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    margin-bottom: 36px;
    line-height: 1;
}

.dzr-brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.dzr-brand-logo-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.dzr-brand-content h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.dzr-brand-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 32px;
}

.dzr-feature {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.dzr-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--diilzo-accent);
}

.dzr-feature h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.dzr-feature p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.dzr-brand-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 22px;
    backdrop-filter: blur(6px);
    width: fit-content;
}

.dzr-stat {
    text-align: center;
}

.dzr-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--diilzo-accent);
}

.dzr-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.dzr-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
}

.dzr-brand-footer {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Right form panel ────────────────────────────────────────── */
.dzr-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow-y: auto;
    background: #f0f1f4;
}

.dzr-form-card {
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 36px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

#dzrForm {
    width: 100%;
    overflow: hidden;
}

.dzr-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--diilzo-muted);
    text-decoration: none;
    margin-bottom: 18px;
    transition: color 0.15s;
}

.dzr-back-link:hover {
    color: var(--diilzo-primary);
}

.dzr-form-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--diilzo-text);
}

.dzr-form-sub {
    font-size: 14px;
    color: var(--diilzo-muted);
    margin: 6px 0 22px;
}

/* ── Progress indicator ──────────────────────────────────────── */
.dzr-progress {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.dzr-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.dzr-progress-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.dzr-progress-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.dzr-progress-step.active .dzr-progress-num {
    background: linear-gradient(135deg, var(--diilzo-primary), var(--diilzo-accent));
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.dzr-progress-step.active .dzr-progress-label {
    color: var(--diilzo-primary);
}

.dzr-progress-step.done .dzr-progress-num {
    background: #27ae60;
    color: #fff;
}

.dzr-progress-step.done .dzr-progress-label {
    color: #27ae60;
}

.dzr-progress-line {
    flex: 1;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    margin: 0 8px;
    position: relative;
    top: -10px;
    transition: background 0.3s ease;
}

.dzr-progress-line.done {
    background: #27ae60;
}

/* ── Step sections ───────────────────────────────────────────── */
.dzr-step {
    display: none;
    animation: dzrFadeIn 0.35s ease;
}

.dzr-step.active {
    display: block;
}

@keyframes dzrFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form fields (modern floating-label design) ──────────────── */
.dzr-field {
    margin-bottom: 18px;
    width: 100%;
    min-width: 0;
}

/* Floating-label field */
.dzr-float .dzr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    background: #f8f9fa;
    border: 1.5px solid #e2e5e9;
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.dzr-float .dzr-input-wrap:hover {
    border-color: #c8ccd2;
    background: #fdfdfe;
}

.dzr-float .dzr-input-wrap:focus-within {
    border-color: var(--diilzo-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.10);
}

/* Icon inside the field */
.dzr-float .dzr-input-wrap>i {
    position: absolute;
    left: 16px;
    color: #9aa0a6;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 2;
}

.dzr-float .dzr-input-wrap:focus-within>i {
    color: var(--diilzo-primary);
}

/* The input itself */
.dzr-float .dzr-input-wrap input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 56px;
    border: none;
    outline: none;
    background: transparent;
    padding: 18px 16px 6px 44px;
    font-size: 15px;
    font-family: inherit;
    color: var(--diilzo-text);
    position: relative;
    z-index: 1;
}

.dzr-float .dzr-input-wrap input::placeholder {
    color: transparent;
}

/* The floating label */
.dzr-float .dzr-input-wrap label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #9aa0a6;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 60px);
}

.dzr-float .dzr-input-wrap label small {
    font-weight: 400;
    color: #b0b6bc;
    font-size: 12px;
}

/* Label floats up when input is focused or has content */
.dzr-float .dzr-input-wrap input:focus+label,
.dzr-float .dzr-input-wrap input:not(:placeholder-shown)+label {
    top: 12px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    color: var(--diilzo-primary);
    max-width: calc(100% - 50px);
}

.dzr-float .dzr-input-wrap input:not(:placeholder-shown)+label {
    color: #5f6368;
}

/* Password eye toggle inside floating field */
.dzr-float .dzr-input-wrap .dzr-eye {
    position: absolute;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    color: #9aa0a6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    z-index: 3;
}

.dzr-float .dzr-input-wrap .dzr-eye:hover {
    color: var(--diilzo-primary);
    background: rgba(255, 106, 0, 0.08);
}

/* Adjust input padding when eye toggle is present */
.dzr-float .dzr-input-wrap:has(.dzr-eye) input {
    padding-right: 50px;
}

/* Two-column row */
.dzr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dzr-row .dzr-field {
    min-width: 0;
}

/* ── Account type cards ───────────────────────────────────────── */
.dzr-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dzr-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.dzr-type-card input {
    position: absolute;
    opacity: 0;
}

.dzr-type-card i {
    font-size: 26px;
    color: #999;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.dzr-type-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.dzr-type-desc {
    font-size: 12px;
    color: #999;
}

.dzr-type-card:hover {
    border-color: #C5E8D5;
    transform: translateY(-2px);
}

.dzr-type-card.active {
    border-color: var(--diilzo-primary);
    background: #DCF5EC;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.12);
}

.dzr-type-card.active i {
    color: var(--diilzo-primary);
}

.dzr-type-card.active .dzr-type-name {
    color: var(--diilzo-primary);
}

/* ── Password strength ────────────────────────────────────────── */
.dzr-strength {
    margin-top: 8px;
    display: none;
}

.dzr-strength.visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dzr-strength-bar {
    flex: 1;
    height: 5px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
}

.dzr-strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.dzr-strength-bar span.weak {
    background: #e5483e;
    width: 25%;
}

.dzr-strength-bar span.fair {
    background: #F59E0B;
    width: 50%;
}

.dzr-strength-bar span.good {
    background: #F59E0B;
    width: 75%;
}

.dzr-strength-bar span.strong {
    background: #27ae60;
    width: 100%;
}

.dzr-strength-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    min-width: 60px;
}

.dzr-strength-label.weak {
    color: #e5483e;
}

.dzr-strength-label.fair {
    color: #F59E0B;
}

.dzr-strength-label.good {
    color: #d4b800;
}

.dzr-strength-label.strong {
    color: #27ae60;
}

.dzr-match-hint {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.dzr-match-hint.match {
    color: #27ae60;
}

.dzr-match-hint.mismatch {
    color: #e5483e;
}

/* ── Terms checkbox ───────────────────────────────────────────── */
.dzr-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 6px 0 18px;
}

.dzr-terms input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--diilzo-primary);
    cursor: pointer;
}

.dzr-terms a {
    color: var(--diilzo-primary);
    text-decoration: none;
    font-weight: 600;
}

.dzr-terms a:hover {
    text-decoration: underline;
}

/* ── Step action buttons ──────────────────────────────────────── */
.dzr-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.dzr-btn-back,
.dzr-btn-next,
.dzr-submit {
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
}

.dzr-btn-back {
    background: #fff;
    color: #555;
    border: 2px solid #e5e5e5;
    padding: 0 22px;
    flex-shrink: 0;
}

.dzr-btn-back:hover {
    border-color: #ccc;
    color: #333;
    background: #fafafa;
}

.dzr-btn-next {
    flex: 1;
    background: linear-gradient(135deg, var(--diilzo-primary), var(--diilzo-accent));
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 106, 0, 0.28);
}

.dzr-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 106, 0, 0.38);
}

.dzr-btn-next:active,
.dzr-btn-back:active {
    transform: translateY(0);
}

.dzr-submit {
    flex: 1;
    background: linear-gradient(135deg, var(--diilzo-primary), var(--diilzo-accent));
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 106, 0, 0.28);
}

.dzr-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 106, 0, 0.38);
}

.dzr-submit:active {
    transform: translateY(0);
}

.dzr-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* ── Google OAuth button ──────────────────────────────────────── */
.dzr-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

.dzr-google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}

.dzr-google-btn:active {
    transform: translateY(1px);
}

.dzr-google-btn svg {
    flex-shrink: 0;
}

/* ── Social Login Grid (Google, Facebook, Instagram, TikTok) ──── */
.dzr-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.dzr-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    color: #333;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dzr-social-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.dzr-social-btn:active {
    transform: translateY(0);
}

.dzr-social-btn svg {
    flex-shrink: 0;
}

.dzr-social-google:hover {
    border-color: #4285F4;
}

.dzr-social-facebook:hover {
    border-color: #1877F2;
}

.dzr-social-facebook {
    color: #1877F2;
}

.dzr-social-instagram:hover {
    border-color: #d62976;
}

.dzr-social-instagram {
    color: #d62976;
}

.dzr-social-tiktok:hover {
    border-color: #000;
}

.dzr-social-tiktok {
    color: #161823;
}

/* ── Divider ─────────────────────────────────────────────────── */
.dzr-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0 16px;
    color: #9aa0a6;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dzr-divider::before,
.dzr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8eaed;
}

.dzr-divider span {
    padding: 0 12px;
}

/* ── Sign-in link ─────────────────────────────────────────────── */
.dzr-signin {
    display: block;
    text-align: center;
    padding: 13px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--diilzo-text);
    transition: all 0.2s;
    background: #fff;
}

.dzr-signin:hover {
    border-color: var(--diilzo-primary);
    color: var(--diilzo-primary);
    background: #DCF5EC;
}

/* ── Responsive: laptop (≤1200px) ────────────────────────────── */
@media (max-width: 1200px) {
    .dzr-brand-panel {
        padding: 36px 36px;
    }

    .dzr-brand-content h1 {
        font-size: 28px;
    }

    .dzr-form-card {
        max-width: 440px;
    }
}

/* ── Responsive: tablet (≤900px) — single column ─────────────── */
@media (max-width: 900px) {
    .dzr-page {
        grid-template-columns: 1fr;
    }

    .dzr-brand-panel {
        padding: 28px 24px;
        min-height: auto;
    }

    .dzr-brand-content h1 {
        font-size: 24px;
    }

    .dzr-brand-features,
    .dzr-brand-stats {
        display: none;
    }

    .dzr-brand-logo {
        margin-bottom: 14px;
    }

    .dzr-brand-footer {
        margin-top: 18px;
    }

    .dzr-form-panel {
        padding: 24px 20px 48px;
    }

    .dzr-form-card {
        max-width: 100%;
    }
}

/* ── Responsive: mobile (≤480px) ─────────────────────────────── */
@media (max-width: 480px) {
    .dzr-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dzr-progress-label {
        display: none;
    }

    .dzr-progress-num {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .dzr-form-card h2 {
        font-size: 22px;
    }

    .dzr-step-actions {
        flex-direction: column-reverse;
    }

    .dzr-btn-back,
    .dzr-btn-next,
    .dzr-submit {
        width: 100%;
    }
}