/* Herc sign-in pages (classic /Login and tenant /CentralLogin). */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --accent: #00d377;
    --accent-dark: #00a85e;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e2e8f0;
    --error-bg: #fff1f2;
    --error-border: #fecdd3;
    --error-text: #be123c;
    --success-bg: #f0fdf9;
    --success-border: #a7f3d0;
    --success-text: #065f46;
    --radius: 0.625rem;
}

body {
    display: flex;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    background: var(--surface);
    color: var(--text-primary);
}

.panel-left {
    width: 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 4rem;
    position: relative;
}

.login-box {
    width: 100%;
    max-width: 28rem;
    animation: slideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-switcher {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

    .lang-switcher-toggle:hover {
        border-color: var(--accent);
        color: var(--text-primary);
    }

.lang-switcher-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 9rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 10;
}

    .lang-switcher-menu.open {
        display: block;
    }

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
}

    .lang-option:hover {
        background: var(--surface-alt);
    }

    .lang-option.active {
        color: var(--accent-dark);
        font-weight: 600;
    }

.heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.subheading {
    margin-top: 0.4rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.steps-list {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .steps-list span {
        font-size: 0.875rem;
        color: var(--text-secondary);
        line-height: 1.5;
    }

.mfa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.35rem 0.85rem;
    background: #f0fdf9;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #065f46;
}

    .mfa-badge svg {
        width: 15px;
        height: 15px;
    }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}

    .alert-close:hover {
        opacity: 1;
    }

.form-group {
    margin-top: 1.35rem;
}

label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1.0625rem;
    color: var(--text-primary);
    background: var(--surface);
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    -webkit-appearance: none;
}

input[type="number"] {
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.2em;
    font-size: 1.2rem;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 211, 119, 0.12);
}

input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    margin-top: 1.6rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(0, 211, 119, 0.25);
}

    .btn-primary:hover {
        background: var(--accent-dark);
        box-shadow: 0 4px 16px rgba(0, 211, 119, 0.3);
    }

    .btn-primary:active {
        transform: scale(0.985);
    }

.code-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.manual-code {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'DM Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    word-break: break-all;
    letter-spacing: 0.05em;
}

.panel-right {
    width: 48%;
    background: var(--surface-alt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

    .panel-right::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 20% 80%, rgba(0,211,119,0.06) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(0,211,119,0.04) 0%, transparent 60%);
        pointer-events: none;
    }

.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

    .logo-wrap img {
        max-width: 30rem;
        opacity: 0.92;
    }

.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

    .qr-wrap img {
        width: 210px;
        height: 210px;
        border-radius: 0.75rem;
        border: 4px solid #fff;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    }

.qr-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .panel-left {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .panel-right {
        display: none;
    }
}

@media (min-width: 2560px) {
    .login-box {
        max-width: 34rem;
    }

    .heading {
        font-size: 2.5rem;
    }

    .subheading, label {
        font-size: 1.125rem;
    }

    input[type="text"], input[type="email"], input[type="password"], input[type="number"] {
        font-size: 1.25rem;
        padding: 1.15rem 1.3rem;
    }

    .btn-primary {
        font-size: 1.25rem;
        padding: 1.15rem 1.5rem;
    }
}
