// ============================================================================= // Beyond — login v1 // // Faithful translation of the signed-off "Iniciar sesión" (login_v1.html). // Every colour, radius, size, gap, duration and font weight below is copied // from that file, unrounded; the rules that have no counterpart there are // marked ENGINEERING and say what they protect against — the design only // covers the nominal case, and this one sits on top of Odoo's real login form. // // SCOPE — everything is nested under .beyond_login / .beyond_login_body. This // file rides web.assets_frontend, which every public page loads (the employee // portal of beyond_attendance_qr among them), so not one rule may escape the // login screen. The QR kiosk is a standalone template that calls no // bundle at all and is out of reach by construction. // // PALETTE — the surfaces and the ink are the identity's own tokens; the design // reuses them exactly. The black is NOT: the design paints the controls // #191613 instead of the brand green, deliberately, so the pre-session screen // reads as the product's cover rather than as another green ERP form. Per the // rule written in scss/beyond_variables.scss ("a colour graduates to a token // when a SECOND screen needs it") that black, the field white, the placeholder // grey and the eye's hover stay local variables here. So does the error // orange, even though it is byte-for-byte the launcher's "Panel General": // same hex, unrelated meaning. // ============================================================================= // The control black of the login and its hover/pressed states. $beyond-login-ink: #191613; $beyond-login-ink-hover: #33302B; $beyond-login-ink-active: #000000; // The brand panel behind the logo — flat black, not the ink above. $beyond-login-brand-bg: #000000; // Fields $beyond-login-field-bg: #FFFFFF; $beyond-login-placeholder: #B3ADA3; $beyond-login-eye-hover: #F0EEE8; // The focus ring the design draws around a field in focus. $beyond-login-ring: rgba(25, 22, 19, 0.10); // Error text. Same hex as $beyond-launcher-panel and unrelated to it. $beyond-login-error: #C55A22; // ----------------------------------------------------------------------------- // Page // // ENGINEERING — the class replaces Odoo's `bg-100` on rather than // joining it (see views/login_templates.xml): the utility paints the body with // !important and there is no point in an override war on a page we own whole. // ----------------------------------------------------------------------------- .beyond_login_body { margin: 0; padding: 0; background: $beyond-surface; color: $beyond-ink; font-family: $beyond-font-family; -webkit-font-smoothing: antialiased; overflow: hidden; // the design is 100vh with no scroll } .beyond_login { height: 100vh; display: flex; background: $beyond-surface; color: $beyond-ink; overflow: hidden; // --------------------------------------------------------------------- // Left: the brand panel // --------------------------------------------------------------------- .beyond_login_brand { flex: 1 1 46%; min-width: 0; background: $beyond-login-brand-bg; display: flex; align-items: center; justify-content: center; padding: 56px; } .beyond_login_logo { display: block; // The design says `width: min(360px, 72%)`. Written as a pair because // Sass evaluates a bare min() itself and refuses to compare px with %; // the used width is identical. width: 72%; max-width: 360px; height: auto; } // --------------------------------------------------------------------- // Right: the form // --------------------------------------------------------------------- .beyond_login_panel { flex: 1 1 54%; min-width: 0; display: flex; justify-content: center; padding: 40px; overflow-y: auto; } .beyond_login_stack { box-sizing: border-box; width: 100%; max-width: 440px; margin: auto; display: flex; flex-direction: column; gap: 26px; } // ENGINEERING — web.login ships two empty `oe_structure` drop zones around // the form. Empty flex children still eat a 26px gap each, so they are // hidden while empty and left alone the moment anything is dropped in. .oe_structure:empty { display: none; } .beyond_login_title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: $beyond-ink; } // The form is a column on the same 26px rhythm as the stack around it, so // title / user / password / CTA / error / signature read as one list. .beyond_login_form { display: flex; flex-direction: column; gap: 26px; } // ENGINEERING — the database picker is core's, shown only when the server // serves more than one database. It keeps its Bootstrap look (a developer // sees it, an employee never does); all it needs is to stop fighting the // column's own rhythm with a utility margin. .beyond_login_form > .mb-3 { margin-bottom: 0 !important; } // --------------------------------------------------------------------- // Fields // --------------------------------------------------------------------- .beyond_login_field { display: flex; flex-direction: column; gap: 8px; } .beyond_login_field_head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .beyond_login_label { margin: 0; // ENGINEERING — Bootstrap's reboot puts a margin on