/* Odoo-style authentication pages */
:root {
    --primary: #714B67;
    --primary-light: #875A7A;
    --primary-dark: #5e3f56;
    --accent: #00A09D;
    --text-muted: #666;
    --border: #d8d8d8;
    --auth-bg: #f0f0f0;
}

* {
    box-sizing: border-box;
}

body.odoo-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--auth-bg);
    color: #333;
}

.odoo-auth-topbar {
    height: 46px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.odoo-auth-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.odoo-auth-topbar-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    font-size: 14px;
}

.odoo-auth-page {
    min-height: calc(100vh - 46px - 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 48px;
}

.odoo-auth-wrap {
    width: 100%;
    max-width: 380px;
}

.odoo-auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 28px 28px 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.odoo-auth-card-head {
    text-align: center;
    margin-bottom: 22px;
}

.odoo-auth-card-logo {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(113, 75, 103, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 24px;
}

.odoo-auth-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #212529;
    margin: 0 0 4px;
    line-height: 1.3;
}

.odoo-auth-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.odoo-auth-form-group {
    margin-bottom: 14px;
}

.odoo-auth-label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.odoo-auth-input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.odoo-auth-input::placeholder {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    opacity: 1;
}

.odoo-auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(113, 75, 103, 0.15);
}

.odoo-auth-input::placeholder {
    color: #999;
}

.odoo-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.odoo-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.odoo-auth-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
    margin: 0;
}

.odoo-auth-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 400;
}

.odoo-auth-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.odoo-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: 3px;
    background: var(--primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.odoo-auth-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.odoo-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.odoo-auth-back:hover {
    color: var(--primary);
}

.odoo-auth-meta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    text-align: center;
}

.odoo-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 6px 10px;
}

.odoo-auth-badge i {
    color: var(--accent);
    font-size: 13px;
}

.odoo-auth-tagline {
    margin: 10px 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.45;
}

.odoo-auth-alert {
    font-size: 12px;
    border-radius: 3px;
    padding: 6px 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    line-height: 1.35;
    font-weight: 500;
}

.odoo-auth-alert-danger {
    background: #fdf2f2;
    border-color: #f5c6c6;
    color: #a94442;
}

.odoo-auth-alert-success {
    background: #f2f9f2;
    border-color: #c6e5c6;
    color: #2e6b2e;
}

.odoo-auth-footer {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 12px;
    color: #888;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.odoo-auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.odoo-auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .odoo-auth-card {
        padding: 22px 18px 20px;
    }

    .odoo-auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Login — premium light glass design ───────────────────── */

html.odoo-auth-html--login,
html:has(.odoo-auth-body--login) {
    height: 100%;
    overflow: hidden;
}

body.odoo-auth-body.odoo-auth-body--login {
    --login-primary: #714B67;
    --login-primary-deep: #543648;
    --login-primary-soft: #8f627f;
    --login-primary-muted: #b8a0b0;
    --login-accent: #2d9d96;
    --login-accent-soft: #d8efed;
    --login-surface: #fffcfd;
    --login-surface-tint: #f7f1f5;
    --login-surface-deep: #efe5eb;
    --login-text: #3a2f37;
    --login-text-soft: #756a72;
    --login-border: rgba(113, 75, 103, 0.14);
    --login-border-strong: rgba(113, 75, 103, 0.24);
    --auth-card-height: clamp(580px, calc(100dvh - 58px - 50px - 24px), 640px);

    position: relative;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Roboto', sans-serif;
    background:
        radial-gradient(circle at 14% 20%, rgba(113, 75, 103, 0.1), transparent 36%),
        radial-gradient(circle at 86% 10%, rgba(113, 75, 103, 0.06), transparent 32%),
        linear-gradient(165deg, #f8f4f7 0%, #f3eff3 48%, #f7f5f8 100%);
    color: var(--login-text);
}

.odoo-auth-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.odoo-auth-scene-aurora {
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 210deg at 50% 50%, rgba(113, 75, 103, 0.07), rgba(143, 98, 127, 0.05), rgba(255, 255, 255, 0.18), rgba(113, 75, 103, 0.07));
    filter: blur(40px);
    opacity: 0.7;
    animation: odooAuthAurora 24s linear infinite;
}

@keyframes odooAuthAurora {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1.05); }
}

.odoo-auth-scene-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(113, 75, 103, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(113, 75, 103, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000 30%, transparent 88%);
}

.odoo-auth-scene-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.35);
}

.odoo-auth-scene-ring-1 {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -120px;
    animation: odooAuthRingPulse 14s ease-in-out infinite;
}

.odoo-auth-scene-ring-2 {
    width: 360px;
    height: 360px;
    left: -100px;
    bottom: -80px;
    animation: odooAuthRingPulse 18s ease-in-out infinite reverse;
}

@keyframes odooAuthRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.05); opacity: 0.7; }
}

.odoo-auth-scene-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.65;
    animation: odooAuthBlobFloat 20s ease-in-out infinite;
}

.odoo-auth-scene-blob-1 {
    width: 460px;
    height: 460px;
    top: -140px;
    left: -100px;
    background: rgba(113, 75, 103, 0.2);
}

.odoo-auth-scene-blob-2 {
    width: 380px;
    height: 380px;
    right: -80px;
    top: 22%;
    background: rgba(143, 98, 127, 0.14);
    animation-delay: -7s;
}

.odoo-auth-scene-blob-3 {
    width: 320px;
    height: 320px;
    left: 42%;
    bottom: -140px;
    background: rgba(255, 255, 255, 0.9);
    animation-delay: -13s;
}

@keyframes odooAuthBlobFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -22px, 0) scale(1.05); }
}

.odoo-auth-body--login .odoo-auth-topbar,
.odoo-auth-body--login .odoo-auth-page,
.odoo-auth-body--login .odoo-auth-footer {
    position: relative;
    z-index: 1;
}

.odoo-auth-topbar--glass {
    flex-shrink: 0;
    height: 58px;
    padding: 0 24px;
    background: rgba(255, 252, 253, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(113, 75, 103, 0.08);
    box-shadow: 0 10px 30px rgba(84, 54, 72, 0.05);
    color: var(--login-primary-deep);
    justify-content: space-between;
}

.odoo-auth-topbar--glass .odoo-auth-topbar-brand {
    font-weight: 600;
    font-size: 15px;
}

.odoo-auth-topbar--glass .odoo-auth-topbar-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, rgba(113, 75, 103, 0.14), rgba(143, 98, 127, 0.1));
    color: var(--login-primary);
    border-radius: 11px;
    font-size: 15px;
}

.odoo-auth-topbar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.odoo-auth-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #5d5762;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 7px 12px;
    box-shadow: 0 4px 14px rgba(113, 75, 103, 0.05);
}

.odoo-auth-topbar-pill--accent {
    color: var(--login-primary);
    background: rgba(113, 75, 103, 0.08);
    border-color: rgba(113, 75, 103, 0.14);
}

.odoo-auth-page--login {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    overflow: hidden;
}

.odoo-auth-stage {
    width: 100%;
    max-width: 1080px;
    max-height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: odooAuthCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes odooAuthCardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.odoo-auth-premium-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: var(--login-surface);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 28px 70px rgba(84, 54, 72, 0.12),
        0 8px 24px rgba(84, 54, 72, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.odoo-auth-body--login .odoo-auth-premium-card {
    min-height: var(--auth-card-height);
    height: var(--auth-card-height);
    max-height: var(--auth-card-height);
}

.odoo-auth-premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(113, 75, 103, 0.18), rgba(143, 98, 127, 0.12), rgba(255, 255, 255, 0.95));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.odoo-auth-premium-glow {
    position: absolute;
    top: -120px;
    left: 12%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(113, 75, 103, 0.14), transparent 68%);
    filter: blur(10px);
    pointer-events: none;
}

.odoo-auth-showcase {
    position: relative;
    padding: 42px 38px;
    min-height: 100%;
    background:
        linear-gradient(165deg, #543648 0%, #714B67 52%, #8f627f 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.odoo-auth-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 36%),
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
    pointer-events: none;
}

.odoo-auth-showcase::after {
    content: '';
    position: absolute;
    top: 8%;
    right: 0;
    width: 1px;
    height: 84%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    pointer-events: none;
}

.odoo-auth-showcase > * {
    position: relative;
    z-index: 1;
}

.odoo-auth-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.odoo-auth-showcase-badge i {
    color: #f2dfe8;
}

.odoo-auth-showcase-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.odoo-auth-showcase-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.odoo-auth-showcase-logo--icon {
    font-size: 34px;
    color: var(--login-primary);
}

.odoo-auth-showcase-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.odoo-auth-showcase-text {
    margin: 0 0 28px;
    max-width: 30rem;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.odoo-auth-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
}

.odoo-auth-stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.odoo-auth-stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.odoo-auth-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #f7edf2;
    font-size: 16px;
    margin-bottom: 4px;
}

.odoo-auth-stat-card:nth-child(2) .odoo-auth-stat-icon {
    background: rgba(45, 157, 150, 0.18);
    color: #d8efed;
}

.odoo-auth-stat-card strong {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.odoo-auth-stat-card small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.odoo-auth-form-panel {
    position: relative;
    min-height: 100%;
    padding: 42px 40px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        linear-gradient(180deg, #fffcfd 0%, #f9f4f7 52%, #f5eff3 100%);
}

.odoo-auth-form-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(113, 75, 103, 0.05), transparent 34%),
        radial-gradient(circle at bottom left, rgba(45, 157, 150, 0.04), transparent 28%);
    pointer-events: none;
}

.odoo-auth-form-panel > * {
    position: relative;
    z-index: 1;
}

.odoo-auth-form-intro {
    margin-bottom: 26px;
}

.odoo-auth-form-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--login-primary);
    background: #f3eaf1;
    border: 1px solid #e7d7e2;
}

.odoo-auth-body--login .odoo-auth-card-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--login-text);
    line-height: 1.15;
}

.odoo-auth-body--login .odoo-auth-card-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--login-text-soft);
    line-height: 1.55;
}

.odoo-auth-body--login .odoo-auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #5f5560;
    margin-bottom: 7px;
}

.odoo-auth-input-wrap {
    position: relative;
}

.odoo-auth-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a8f97;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.15s ease;
}

.odoo-auth-body--login .odoo-auth-input {
    height: 50px;
    padding: 0 46px 0 44px;
    border-radius: 14px;
    border: 1px solid var(--login-border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 2px rgba(113, 75, 103, 0.02);
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--login-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.odoo-auth-body--login .odoo-auth-input:focus {
    outline: none;
    border-color: var(--login-border-strong);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(113, 75, 103, 0.08),
        0 8px 20px rgba(113, 75, 103, 0.05);
}

.odoo-auth-body--login .odoo-auth-input:focus + .odoo-auth-input-toggle,
.odoo-auth-body--login .odoo-auth-input-wrap:focus-within .odoo-auth-input-icon {
    color: var(--login-primary);
}

.odoo-auth-body--login .odoo-auth-check {
    color: var(--login-text-soft);
}

.odoo-auth-body--login .odoo-auth-link {
    color: var(--login-primary);
}

.odoo-auth-body--login .odoo-auth-link:hover {
    color: var(--login-primary-soft);
}

.odoo-auth-input-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7d7782;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.odoo-auth-input-toggle:hover {
    background: rgba(113, 75, 103, 0.08);
    color: var(--primary);
}

.odoo-auth-body--login .odoo-auth-options {
    margin-bottom: 22px;
}

.odoo-auth-btn--premium {
    position: relative;
    overflow: hidden;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(84, 54, 72, 0.18);
    background: linear-gradient(135deg, #714B67 0%, #7f5572 100%);
    box-shadow: 0 14px 28px rgba(84, 54, 72, 0.2);
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.odoo-auth-btn--premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    transition: left 0.45s ease;
}

.odoo-auth-btn--premium:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #7f5572 0%, #8f627f 100%);
    box-shadow: 0 18px 34px rgba(84, 54, 72, 0.24);
}

.odoo-auth-btn--premium:hover::after {
    left: 140%;
}

.odoo-auth-btn--premium i {
    font-size: 18px;
}

.odoo-auth-badge--glass {
    background: #f3eaf1;
    border: 1px solid #e7d7e2;
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 12px;
    color: var(--login-text-soft);
}

.odoo-auth-badge--glass i {
    color: var(--login-accent);
}

.odoo-auth-body--login .odoo-auth-meta {
    border-top: 1px solid var(--login-border);
    margin-top: auto;
    padding-top: 18px;
    text-align: center;
}

.odoo-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--login-primary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3eaf1;
    border: 1px solid #e7d7e2;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.odoo-auth-back-link:hover {
    color: var(--login-primary-deep);
    background: #eadde6;
    text-decoration: none;
    transform: translateY(-1px);
}

.odoo-auth-reset-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.odoo-auth-reset-steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.odoo-auth-reset-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
}

.odoo-auth-reset-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
}

.odoo-auth-reset-step small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.odoo-auth-reset-step.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.odoo-auth-reset-step.is-active span,
.odoo-auth-reset-step.is-done span {
    background: rgba(255, 255, 255, 0.92);
    color: var(--login-primary);
}

.odoo-auth-reset-step.is-done {
    color: rgba(255, 255, 255, 0.82);
}

.odoo-auth-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.odoo-auth-channel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--login-border);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.odoo-auth-channel-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.odoo-auth-channel-card strong {
    font-size: 14px;
    color: var(--login-text);
}

.odoo-auth-channel-card small {
    font-size: 12px;
    color: var(--login-text-soft);
    line-height: 1.45;
}

.odoo-auth-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3eaf1;
    color: var(--login-primary);
    font-size: 18px;
}

.odoo-auth-channel-card:has(input:checked) {
    border-color: var(--login-border-strong);
    box-shadow: 0 10px 24px rgba(84, 54, 72, 0.08);
    transform: translateY(-1px);
}

.odoo-auth-channel-card.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.odoo-auth-field-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--login-text-soft);
}

.odoo-auth-otp-input {
    letter-spacing: 0.28em;
    font-weight: 600;
    text-align: center;
}

.odoo-auth-reset-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.odoo-auth-inline-form {
    display: inline;
    margin: 0;
}

.odoo-auth-inline-link,
.odoo-auth-inline-link-btn {
    font-size: 13px;
    font-weight: 500;
    color: var(--login-primary);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.odoo-auth-inline-link:hover,
.odoo-auth-inline-link-btn:hover {
    color: var(--login-primary-deep);
    text-decoration: underline;
}

.odoo-auth-reset-sep {
    color: #c8bcc3;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .odoo-auth-channel-grid,
    .odoo-auth-reset-steps {
        grid-template-columns: 1fr;
    }
}

.odoo-auth-body--login .odoo-auth-alert {
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    padding: 10px 12px;
}

.odoo-auth-footer--glass {
    flex-shrink: 0;
    height: 50px;
    background: rgba(255, 252, 253, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(113, 75, 103, 0.08);
    color: var(--login-text-soft);
}

.odoo-auth-body--login .odoo-auth-footer a {
    color: var(--login-primary);
}

@media (max-width: 991.98px) {
    .odoo-auth-body--login {
        --auth-card-height: clamp(520px, calc(100dvh - 58px - 50px - 20px), 640px);
    }

    .odoo-auth-premium-card {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .odoo-auth-showcase {
        display: none;
    }

    .odoo-auth-form-panel {
        padding: 32px 26px 28px;
        border-top: 4px solid var(--login-primary);
    }

    .odoo-auth-form-intro {
        text-align: center;
    }

    .odoo-auth-form-chip {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .odoo-auth-page--login {
        padding: 10px 14px;
    }

    .odoo-auth-premium-card {
        border-radius: 22px;
    }

    .odoo-auth-form-panel {
        padding: 26px 18px 22px;
    }

    .odoo-auth-topbar-meta {
        display: none;
    }

    .odoo-auth-body--login .odoo-auth-card-title {
        font-size: 26px;
    }

    .odoo-auth-topbar--glass {
        padding: 0 14px;
    }
}

@media (max-height: 760px) {
    .odoo-auth-body--login {
        --auth-card-height: clamp(500px, calc(100dvh - 58px - 50px - 16px), 580px);
    }

    .odoo-auth-showcase {
        padding: 28px 30px;
    }

    .odoo-auth-showcase-logo {
        width: 72px;
        height: 72px;
        margin-bottom: 14px;
    }

    .odoo-auth-showcase-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .odoo-auth-showcase-text {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .odoo-auth-stat-grid {
        gap: 10px;
    }

    .odoo-auth-form-panel {
        padding: 28px 32px 24px;
    }

    .odoo-auth-form-intro {
        margin-bottom: 18px;
    }

    .odoo-auth-body--login .odoo-auth-card-title {
        font-size: 26px;
    }

    .odoo-auth-form-group {
        margin-bottom: 12px;
    }
}

@media (max-height: 640px) {
    .odoo-auth-body--login {
        --auth-card-height: clamp(460px, calc(100dvh - 58px - 50px - 12px), 520px);
    }

    .odoo-auth-stat-grid {
        display: none;
    }

    .odoo-auth-showcase-badge {
        margin-bottom: 14px;
    }

    .odoo-auth-form-panel {
        padding: 22px 24px 20px;
    }

    .odoo-auth-form-intro {
        margin-bottom: 14px;
    }

    .odoo-auth-form-chip {
        margin-bottom: 10px;
    }

    .odoo-auth-meta {
        margin-top: 12px;
    }
}

/* ── Odoo Error Pages ─────────────────────────────────────── */

.odoo-error-wrap {
    max-width: 440px;
}

.odoo-error-card {
    text-align: center;
    padding: 32px 28px 26px;
}

.odoo-error-code-wrap {
    margin-bottom: 8px;
}

.odoo-error-code {
    display: inline-block;
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.odoo-error-icon {
    margin-bottom: 14px;
}

.odoo-error-icon-default {
    background: rgba(113, 75, 103, 0.1);
    color: var(--primary);
}

.odoo-error-icon-warn {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
}

.odoo-error-icon-danger {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
}

.odoo-error-icon-info {
    background: rgba(0, 160, 157, 0.1);
    color: var(--accent);
}

.odoo-error-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 20px;
    padding: 0 4px;
}

.odoo-error-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.odoo-error-btn-primary {
    text-decoration: none;
}

.odoo-error-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #555 !important;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.odoo-error-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: var(--primary) !important;
    text-decoration: none;
}

.odoo-error-card .odoo-auth-meta {
    margin-top: 20px;
    padding-top: 18px;
}

.odoo-error-card .odoo-auth-badge {
    max-width: 100%;
    line-height: 1.45;
    text-align: left;
}

@media (max-width: 575.98px) {
    .odoo-error-code {
        font-size: 48px;
    }

    .odoo-error-card {
        padding: 26px 18px 22px;
    }
}

/* ── Two-factor authentication panels ───────────────────────── */

.tfa-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 18px;
}

.tfa-status-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--login-text-soft);
}

.tfa-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tfa-status-badge--enabled {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.tfa-status-badge--disabled {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.tfa-status-meta {
    font-size: 12px;
    color: var(--login-text-soft);
}

.tfa-help-text {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--login-text-soft);
}

.tfa-panel {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--login-border);
}

.tfa-panel--warning {
    background: #fff8eb;
    border-color: #fde68a;
    color: #92400e;
}

.tfa-panel--warning p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.tfa-panel-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--login-text);
}

.tfa-panel-title--danger {
    color: #b42318;
}

.tfa-divider {
    height: 1px;
    margin: 20px 0;
    background: var(--login-border);
}

.tfa-section {
    margin-bottom: 4px;
}

.tfa-setup-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
    margin-top: 12px;
}

.tfa-qr-wrap {
    background: #fff;
    border: 1px solid var(--login-border);
    border-radius: 12px;
    padding: 10px;
}

.tfa-qr-image {
    display: block;
    width: 200px;
    height: 200px;
}

.tfa-secret-block {
    flex: 1;
    min-width: 180px;
}

.tfa-secret-key {
    margin-top: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    background: #fff;
    border: 1px solid var(--login-border);
    border-radius: 10px;
    padding: 10px 12px;
    word-break: break-all;
    color: var(--login-text);
}

.tfa-recovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.tfa-recovery-code {
    display: block;
    background: #fff;
    border: 1px solid var(--login-border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
    color: var(--login-text);
}

.tfa-btn-secondary,
.tfa-btn-danger {
    height: 50px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.tfa-btn-secondary {
    color: var(--login-primary);
    background: #f3eaf1;
    border: 1px solid #e7d7e2;
}

.tfa-btn-secondary:hover {
    background: #eadde6;
}

.tfa-btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b42318);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.18);
}

.tfa-btn-danger:hover {
    transform: translateY(-1px);
}

/* ── My profile page ──────────────────────────────────────── */

.profile-showcase {
    align-items: center;
    text-align: center;
}

.profile-showcase-avatar-wrap {
    margin-bottom: 16px;
}

.profile-showcase-avatar {
    width: 108px;
    height: 108px;
    border-radius: 22px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.profile-showcase-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.profile-showcase-userid {
    margin: -4px 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.profile-showcase-role {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-showcase .odoo-auth-showcase-text {
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.profile-details-full {
    grid-column: 1 / -1;
}

.profile-readonly-wrap {
    background: rgba(255, 255, 255, 0.92);
}

.profile-readonly-input {
    background: transparent;
    cursor: default;
}

.profile-readonly-input:focus {
    box-shadow: none !important;
    border-color: var(--login-border) !important;
}

.profile-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.profile-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--login-primary);
    background: #f3eaf1;
    border: 1px solid #e7d7e2;
    text-decoration: none !important;
    transition: background 0.12s ease, transform 0.12s ease;
}

.profile-quick-link:hover {
    background: #eadde6;
    color: var(--login-primary-deep);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .profile-details-grid,
    .profile-quick-links {
        grid-template-columns: 1fr;
    }
}
