/* WhatsApp UI auth — inspired by RealOffice auth-modern */
.wui-auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    background: var(--ro-background, #f5f5f5);
}

.wui-auth-shell {
    display: flex;
    min-height: 100vh;
}

.wui-auth-brand {
    flex: 0 0 42%;
    max-width: 520px;
    background: linear-gradient(135deg, #1976d2 0%, #018786 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

[dir="rtl"] .wui-auth-brand {
    background: linear-gradient(225deg, #1976d2 0%, #018786 100%);
}

.wui-auth-brand-logo img {
    height: 48px;
    filter: brightness(0) invert(1);
}

.wui-auth-brand h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    line-height: 1.25;
}

.wui-auth-brand p {
    opacity: 0.92;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
}

.wui-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wui-auth-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.wui-auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem 3rem;
}

.wui-auth-form-wrap {
    width: 100%;
    max-width: 440px;
    background: var(--ro-surface, #fff);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
    padding: 2rem 2.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.wui-auth-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.wui-auth-subtitle {
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.wui-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wui-step {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    transition: background 0.3s;
}

.wui-step.active {
    background: linear-gradient(90deg, #1976d2, #018786);
}

.wui-office-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wui-office-card {
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: var(--ro-surface, #fff);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.wui-office-card:hover,
.wui-office-card.selected {
    border-color: #1976d2;
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
}

.wui-office-card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.wui-office-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(25, 118, 210, 0.12);
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .wui-auth-shell {
        flex-direction: column;
    }

    .wui-auth-brand {
        flex: none;
        max-width: none;
        min-height: auto;
        padding: 1rem;
    }

    .wui-auth-brand-copy,
    .wui-auth-brand-footer {
        display: none;
    }

    .wui-auth-content {
        align-items: flex-start;
        padding: 1rem;
    }

    .wui-auth-form-wrap {
        padding: 1.25rem;
        border-radius: 12px;
    }
}
