/* Wahive Auth — Orange brand · Flex layout */

:root {
    --wahive-orange: #ff6600;
    --wahive-orange-light: #ff8533;
    --wahive-orange-dark: #e55a00;
    --wahive-orange-muted: #fff4eb;
    --wahive-orange-ring: rgba(255, 102, 0, 0.18);
    --wahive-orange-gradient: linear-gradient(135deg, #ff8533 0%, #ff6600 45%, #e55a00 100%);
    --wahive-text: #1a1a1a;
    --wahive-text-muted: #6b7280;
    --wahive-border: #e8e8e8;
    --wahive-surface: #ffffff;
    --wahive-bg: #fafafa;
    --wahive-radius: 14px;
    --wahive-radius-lg: 20px;
    --wahive-shadow: 0 4px 24px rgba(255, 102, 0, 0.08);
    --wahive-shadow-lg: 0 16px 48px rgba(255, 102, 0, 0.14);
    --wahive-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.wahive-auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--wahive-font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--wahive-text);
    background: var(--wahive-bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Flex shell ── */
.wahive-auth-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 992px) {
    .wahive-auth-shell {
        flex-direction: row;
        align-items: stretch;
    }
}

/* ── Left brand panel (orange hero) ── */
.wahive-auth-brand {
    display: none;
    flex: 1 1 50%;
    position: relative;
    background: var(--wahive-orange-gradient);
    padding: 3rem 3.5rem;
    overflow: hidden;
}

@media (min-width: 992px) {
    .wahive-auth-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}

.wahive-auth-brand-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.wahive-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wahive-auth-brand-logo-box {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.wahive-brand-logo,
.wahive-auth-brand-logo-box img {
    max-height: 72px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
}

.wahive-brand-logo-icon,
.wahive-auth-brand-logo-box .wahive-brand-logo-icon {
    max-height: 72px;
    max-width: 72px;
    width: 72px;
    height: 72px;
    object-fit: contain;
    object-position: center;
}

.wahive-auth-brand-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: #fff;
}

.wahive-auth-brand-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 2.5rem;
    line-height: 1.65;
}

.wahive-auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wahive-auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.wahive-auth-feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0625rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.wahive-auth-feature-text strong {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
    color: #fff;
}

.wahive-auth-feature-text span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.78);
}

/* ── Right panel ── */
.wahive-auth-panel {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--wahive-surface);
}

.wahive-auth-topbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--wahive-border);
    background: var(--wahive-surface);
}

@media (min-width: 992px) {
    .wahive-auth-topbar {
        border-bottom: none;
        background: transparent;
        padding: 1.25rem 2.5rem;
    }
}

.wahive-auth-topbar-logo {
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .wahive-auth-topbar-logo {
        display: none;
    }
}

.wahive-auth-topbar-logo .wahive-brand-logo {
    max-height: 64px;
    max-width: 280px;
}

.wahive-auth-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* Toolbar */
.wahive-auth-toolbar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.wahive-auth-dropdown {
    position: relative;
}

.wahive-auth-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--wahive-border);
    border-radius: 10px;
    background: var(--wahive-surface);
    color: var(--wahive-text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.wahive-auth-icon-btn:hover {
    border-color: var(--wahive-orange);
    color: var(--wahive-orange);
    background: var(--wahive-orange-muted);
}

.wahive-auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--wahive-surface);
    border: 1px solid var(--wahive-border);
    border-radius: var(--wahive-radius);
    box-shadow: var(--wahive-shadow-lg);
    padding: 0.375rem;
    z-index: 100;
}

.wahive-auth-dropdown-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wahive-text-muted);
    padding: 0.5rem 0.625rem 0.375rem;
}

.wahive-auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    color: var(--wahive-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
}

.wahive-auth-dropdown-item:hover {
    background: var(--wahive-orange-muted);
    color: var(--wahive-orange-dark);
    text-decoration: none;
}

.wahive-auth-dropdown-item.active {
    background: var(--wahive-orange-muted);
    color: var(--wahive-orange);
    font-weight: 600;
}

.wahive-auth-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.wahive-auth-topbar-btn-primary {
    color: #fff;
    background: var(--wahive-orange-gradient);
    border: none;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
}

.wahive-auth-topbar-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    color: #fff;
    text-decoration: none;
}

.wahive-auth-topbar-btn-outline {
    color: var(--wahive-text);
    border: 1px solid var(--wahive-border);
    background: var(--wahive-surface);
}

/* ── Main form area (flex center) ── */
.wahive-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .wahive-auth-main {
        padding: 2rem 3.5rem;
    }
}

.wahive-auth-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 576px) {
    .wahive-auth-card {
        background: var(--wahive-surface);
        border: 1px solid var(--wahive-border);
        border-radius: var(--wahive-radius-lg);
        padding: 2.25rem;
        box-shadow: var(--wahive-shadow);
    }
}

.wahive-auth-card-wide {
    max-width: 480px;
}

.wahive-auth-heading {
    margin-bottom: 1.75rem;
    text-align: center;
}

@media (min-width: 992px) {
    .wahive-auth-heading {
        text-align: left;
    }
}

.wahive-auth-heading h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.375rem;
    color: var(--wahive-text);
}

.wahive-auth-heading p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--wahive-text-muted);
}

/* ── Form ── */
.wahive-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wahive-auth-form .form-group {
    margin-bottom: 1.125rem;
}

.wahive-auth-form label.wahive-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wahive-text);
    margin-bottom: 0.375rem;
}

.wahive-input-wrap,
.wahive-input-icon-wrap {
    position: relative;
    display: block;
    isolation: isolate;
}

.wahive-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    color: var(--wahive-text-muted);
    font-size: 0.875rem;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.wahive-auth-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--wahive-orange-muted);
    border-radius: 14px;
    color: var(--wahive-orange);
    font-size: 1.375rem;
}

@media (min-width: 992px) {
    .wahive-auth-heading-icon {
        margin: 0 0 1rem;
    }
}

body.wahive-auth-body .wahive-auth-form .form-control,
body.wahive-auth-body .wahive-auth-form .lw-form-field {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--wahive-text);
    background: var(--wahive-bg);
    border: 1.5px solid var(--wahive-border) !important;
    border-radius: var(--wahive-radius);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: none !important;
    outline: none;
}

body.wahive-auth-body .wahive-auth-form .form-control:focus,
body.wahive-auth-body .wahive-auth-form .lw-form-field:focus {
    background: var(--wahive-surface);
    border-color: var(--wahive-orange) !important;
    box-shadow: 0 0 0 3px var(--wahive-orange-ring) !important;
    outline: none !important;
}

/* Icon inputs — must override the generic padding rule above */
body.wahive-auth-body .wahive-auth-form .wahive-input-icon-wrap .form-control,
body.wahive-auth-body .wahive-auth-form .wahive-input-icon-wrap .lw-form-field {
    position: relative;
    z-index: 1;
    padding-left: 3rem !important;
    padding-right: 1rem !important;
}

body.wahive-auth-body .wahive-auth-form .wahive-input-icon-wrap.wahive-input-wrap .form-control,
body.wahive-auth-body .wahive-auth-form .wahive-input-icon-wrap.wahive-input-wrap .lw-form-field {
    padding-right: 3rem !important;
}

body.wahive-auth-body .wahive-auth-form .form-control:-webkit-autofill,
body.wahive-auth-body .wahive-auth-form .lw-form-field:-webkit-autofill,
body.wahive-auth-body .wahive-auth-form .wahive-input-icon-wrap .form-control:-webkit-autofill,
body.wahive-auth-body .wahive-auth-form .wahive-input-icon-wrap .lw-form-field:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--wahive-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--wahive-bg) inset !important;
}

.wahive-input-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--wahive-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    z-index: 2;
}

.wahive-input-toggle:hover {
    color: var(--wahive-orange);
}

.wahive-hint {
    font-size: 0.75rem;
    color: var(--wahive-text-muted);
    margin: 0.5rem 0 0;
    padding-left: 0.125rem;
    line-height: 1.45;
}

.wahive-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wahive-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--wahive-text-muted);
    user-select: none;
}

.wahive-checkbox input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: var(--wahive-orange);
    cursor: pointer;
}

.wahive-link {
    font-size: 0.875rem;
    color: var(--wahive-orange);
    text-decoration: none;
    font-weight: 600;
}

.wahive-link:hover {
    color: var(--wahive-orange-dark);
    text-decoration: underline;
}

/* Primary button — orange gradient like logo */
.wahive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 48px;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--wahive-radius);
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.wahive-btn-primary {
    background: var(--wahive-orange-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35);
}

.wahive-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.42);
    color: #fff;
}

.wahive-btn-primary:active {
    transform: translateY(0);
}

.wahive-btn-secondary {
    background: var(--wahive-surface);
    color: var(--wahive-text);
    border: 1.5px solid var(--wahive-border);
    box-shadow: none;
}

.wahive-btn-secondary:hover {
    border-color: var(--wahive-orange);
    color: var(--wahive-orange);
    background: var(--wahive-orange-muted);
}

.wahive-btn-google {
    background: #fff;
    color: var(--wahive-text);
    border: 1.5px solid var(--wahive-border);
    box-shadow: none;
}

.wahive-btn-google:hover {
    background: var(--wahive-bg);
    border-color: #d4d4d4;
    color: var(--wahive-text);
}

.wahive-btn-facebook {
    background: #1877f2;
    color: #fff;
    box-shadow: none;
}

.wahive-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--wahive-text-muted);
    font-size: 0.8125rem;
}

.wahive-divider::before,
.wahive-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wahive-border);
}

.wahive-auth-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--wahive-text-muted);
}

.wahive-demo-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.wahive-demo-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    font-family: inherit;
}

.wahive-alert-success {
    background: var(--wahive-orange-muted);
    color: var(--wahive-orange-dark);
    border: 1px solid #ffd6b3;
    padding: 0.75rem 1rem;
    border-radius: var(--wahive-radius);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.wahive-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 0.75rem 1rem;
    border-radius: var(--wahive-radius);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* Register wizard */
.wahive-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.wahive-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--wahive-border);
    transition: background 0.2s;
}

.wahive-step-dot.active,
.wahive-step-dot.done {
    background: var(--wahive-orange);
}

.wahive-step-dot.done {
    opacity: 0.45;
}

.wahive-step-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.wahive-step-actions .wahive-btn {
    flex: 1;
}

.wahive-auth-form .input-group,
.wahive-auth-form .input-group-alternative,
.wahive-auth-form .input-group-prepend,
.wahive-auth-form .input-group-append,
.wahive-auth-form .input-group-text {
    border: none;
    box-shadow: none;
    padding: 0;
    display: block;
}

.wahive-auth-form .input-group-prepend,
.wahive-auth-form .input-group-append,
.wahive-auth-form .input-group-text {
    display: none;
}

.wahive-auth-form .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.wahive-auth-form .row > [class*='col-'] {
    padding: 0 0.5rem;
    flex: 1;
    min-width: 0;
}

.wahive-auth-form .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 576px) {
    .wahive-auth-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.wahive-auth-form label.lw-validation-error,
.wahive-auth-form label.error {
    display: block;
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: 0.375rem;
    text-align: left;
    width: 100%;
}

.wahive-auth-form .custom-control-label a {
    color: var(--wahive-orange);
}

.wahive-auth-form .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--wahive-orange);
    border-color: var(--wahive-orange);
}

[x-cloak] {
    display: none !important;
}
