/*
 * Shared left brand panel for Biznify pages (Login + Register wizard).
 * Rendered via Views/Shared/_BiznifyBrandPanel.cshtml on both LoginBiznify.cshtml
 * and RegisterBiznify.cshtml, so panel changes apply to both automatically.
 *
 * Visual/animation details below were reverse-engineered from the live reference
 * app (https://auth-biznify.vercel.app) via a headless-browser inspection of its
 * computed styles and @keyframes - not guessed.
 */

:root {
    --biznify-teal: #14b8a6;
    --biznify-teal-dark: #0e9488;
    --biznify-teal-light: #5eead4;
    --biznify-panel-top: #2e7ea3;
    --biznify-panel-bottom: #163f5c;
    --biznify-ink: #142033;
    --biznify-gray: #6b7280;
    --biznify-border: #e3e7ed;
}

.biznify-auth,
.biznify-auth * {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #eafaf8;
}

.biznify-auth {
    width: 100%;
    max-width: 1000px;
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 55, 80, 0.18);
    overflow: hidden;
}

/* ---------- Left brand panel ---------- */
.biznify-auth__brand {
    position: relative;
    flex: 0 0 45%;
    max-width: 560px;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(165deg, var(--biznify-panel-top) 0%, var(--biznify-panel-bottom) 100%);
    overflow: hidden;
}

.biznify-auth__brand-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
}

.biznify-auth__glow {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    pointer-events: none;
}

.biznify-auth__glow--teal {
    width: 384px;
    height: 384px;
    bottom: -128px;
    right: -128px;
    background: var(--biznify-teal);
    filter: blur(80px);
    opacity: 0.4;
}

.biznify-auth__glow--blue {
    width: 320px;
    height: 320px;
    top: -128px;
    left: -128px;
    background: #1e6199;
    filter: blur(60px);
    opacity: 0.5;
}

.biznify-auth__brand-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.biznify-auth__logo {
    display: flex;
    align-items: flex-start;
}

.biznify-auth__logo-svg {
    height: 46px;
    width: auto;
}

    /* The source logo's navy wordmark (#174F7D) reads as near-invisible on this dark
       panel, so the "iznify" letters are recolored to white here. The icon's swirl
       mark (recolored to #19DBCC directly in the view) and its #00C1B3 accent keep
       their brand teal. */
    .biznify-auth__logo-svg path[fill="#174F7D"] {
        fill: #fff;
    }

.biznify-auth__headline {
    margin: 56px 0 40px;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.biznify-auth__headline-accent {
    color: var(--biznify-teal-light);
}

.biznify-auth__mockup {
    position: relative;
    margin-bottom: auto;
    padding-bottom: 28px;
}

.biznify-auth__mockup-card {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 16px;
    background: rgba(20, 184, 166, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: transform 0.5s ease;
}

    .biznify-auth__mockup-card:hover {
        transform: scale(1.05) rotate(-1deg);
    }

.biznify-auth__mockup-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

    .biznify-auth__mockup-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }

        .biznify-auth__mockup-dots span:nth-child(1) {
            background: #ef4444;
        }

        .biznify-auth__mockup-dots span:nth-child(2) {
            background: #f59e0b;
        }

        .biznify-auth__mockup-dots span:nth-child(3) {
            background: #22c55e;
        }

.biznify-auth__bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
    margin-bottom: 10px;
}

.biznify-auth__bar--wide {
    width: 85%;
}

.biznify-auth__bar--mid {
    width: 55%;
}

.biznify-auth__mockup-blocks {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.biznify-auth__mockup-block {
    flex: 1;
    height: 64px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
}

.biznify-auth__mockup-block--solid {
    background: rgba(20, 184, 166, 0.45);
}

.biznify-auth__mockup-block--lines {
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

    .biznify-auth__mockup-block--lines .biznify-auth__bar {
        margin-bottom: 0;
        height: 6px;
        background: rgba(255, 255, 255, 0.35);
    }

.biznify-auth__mockup-bolt {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--biznify-teal);
    border: 4px solid var(--biznify-panel-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: biznify-bounce 4s infinite;
}

    .biznify-auth__mockup-bolt svg {
        width: 28px;
        height: 28px;
        color: #fff;
    }

.biznify-auth__status {
    position: absolute;
    left: -12px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 12px 18px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    animation: biznify-bounce 5s infinite;
    animation-delay: 1s;
}

.biznify-auth__status-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .biznify-auth__status-icon svg {
        width: 16px;
        height: 16px;
    }

.biznify-auth__status-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.biznify-auth__status-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

.biznify-auth__status-value {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.biznify-auth__footer {
    position: relative;
    z-index: 1;
    margin: 88px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.biznify-auth__footer-brand {
    color: inherit;
    text-decoration: underline;
}

    .biznify-auth__footer-brand:hover {
        color: #fff;
    }

@keyframes biznify-bounce {
    0%, 100% {
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
        transform: translateY(-25%);
    }

    50% {
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
        transform: translateY(0);
    }
}

/* ---------- Right form panel shell (shared sizing; page-specific CSS fills content) ---------- */
.biznify-auth__panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.biznify-auth__panel-inner {
    width: 100%;
    max-width: 400px;
}

.biznify-auth__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--biznify-ink);
}

.biznify-auth__subtitle {
    margin: 0 0 28px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--biznify-gray);
}

.biznify-auth__notice {
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13.5px;
}

.biznify-auth__form {
    display: flex;
    flex-direction: column;
}

.biznify-auth__field {
    margin-bottom: 20px;
}

.biznify-auth__label {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.biznify-auth__input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--biznify-border);
    border-radius: 10px;
    padding: 0 14px;
    transition: border-color 0.15s ease;
}

    .biznify-auth__input-group:focus-within {
        border-color: var(--biznify-teal);
    }

.biznify-auth__input-icon {
    display: flex;
    align-items: center;
    color: #9ca3af;
    margin-right: 10px;
}

    .biznify-auth__input-icon svg {
        width: 18px;
        height: 18px;
    }

.biznify-auth__input-group input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 14.5px;
    color: var(--biznify-ink);
    background: transparent;
}

    .biznify-auth__input-group input::placeholder {
        color: #b0b6c0;
    }

    /* Browsers/password managers tint autofilled inputs (yellow, or a lavender
       "matched credential" highlight) via this pseudo-class. Force it back to
       a plain white field instead of letting that bleed through. */
    .biznify-auth__input-group input:-webkit-autofill,
    .biznify-auth__input-group input:-webkit-autofill:hover,
    .biznify-auth__input-group input:-webkit-autofill:focus {
        -webkit-text-fill-color: var(--biznify-ink);
        -webkit-box-shadow: 0 0 0 1000px #fff inset;
        box-shadow: 0 0 0 1000px #fff inset;
        transition: background-color 9999s ease-in-out 0s;
    }

.biznify-auth__toggle {
    background: none;
    border: none;
    padding: 4px;
    margin-left: 6px;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .biznify-auth__toggle svg {
        width: 18px;
        height: 18px;
    }

.biznify-auth__error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: #dc2626;
}

.biznify-auth__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .biznify-auth__label-row .biznify-auth__label {
        margin-bottom: 0;
    }

.biznify-auth__link-sm {
    font-size: 13px;
    font-weight: 600;
    color: var(--biznify-teal-dark);
    text-decoration: none;
}

    .biznify-auth__link-sm:hover {
        text-decoration: underline;
    }

.biznify-wizard__autodetect {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

    .biznify-wizard__autodetect:disabled {
        opacity: 0.6;
        cursor: default;
    }

.biznify-wizard__autodetect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .biznify-wizard__autodetect-icon svg {
        width: 14px;
        height: 14px;
    }

    .biznify-wizard__autodetect.is-detecting .biznify-wizard__autodetect-icon svg {
        animation: biznify-autodetect-pulse 0.9s ease-in-out infinite;
    }

@keyframes biznify-autodetect-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
}

.biznify-wizard__autodetect-status {
    margin: 6px 0 0;
    font-size: 12px;
}

    .biznify-wizard__autodetect-status.is-error {
        color: #dc2626;
    }

    .biznify-wizard__autodetect-status.is-success {
        color: var(--biznify-teal-dark);
    }

.biznify-auth__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .biznify-auth__btn:disabled {
        opacity: 0.55;
        cursor: default;
    }

.biznify-auth__btn--primary {
    background: var(--biznify-teal);
    color: #fff;
    margin-bottom: 12px;
}

    .biznify-auth__btn--primary:hover {
        background: var(--biznify-teal-dark);
    }

.biznify-auth__btn--google {
    background: #fff;
    color: #374151;
    border: 1px solid var(--biznify-border);
}

    .biznify-auth__btn--google:hover {
        background: #f9fafb;
    }

    .biznify-auth__btn--google img {
        width: 18px;
        height: 18px;
    }

.biznify-auth__btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.biznify-auth__btn--outline {
    background: #fff;
    color: var(--biznify-ink);
    border: 1px solid var(--biznify-border);
}

    .biznify-auth__btn--outline:hover {
        background: #f9fafb;
    }

.biznify-auth__signup {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--biznify-gray);
}

.biznify-auth__link {
    color: var(--biznify-teal-dark);
    font-weight: 700;
    text-decoration: none;
}

    .biznify-auth__link:hover {
        text-decoration: underline;
    }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .biznify-auth__brand {
        display: none;
    }

    .biznify-auth__panel {
        padding: 32px 20px;
    }
}
