/* Reference layout, layered over the existing login animations and controls. */
body { min-height: 100svh; height: auto; overflow: auto; color: #081b50; background: #f4fbff; letter-spacing: 0; }
.lp {
    min-width: 0; min-height: 100svh; height: auto; padding: 42px 4% 32px;
    background: none;
    animation: none;
}
.lp::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../../images/bg-login.png') center center / cover no-repeat;
    animation: bgZoom 24s ease-in-out infinite alternate;
    will-change: transform;
}
.lp::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(227,246,255,.96), transparent 55%),
        linear-gradient(100deg, rgba(239,250,255,.98) 0%, rgba(239,250,255,.9) 30%, rgba(233,247,255,.3) 58%, transparent 78%);
}
@keyframes bgZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.15); }
}
.lp-watermark { display: none; }
.lp-brand, .lp-middle, .lp-footer { z-index: 2; }
.lp-brand { padding: 0; border: 0; gap: 16px; }
.lp-brand img { height: 54px; width: 88px; object-fit: contain; animation: brandLogoGlow 3.2s ease-in-out infinite; animation-delay: .6s; }
@keyframes brandLogoGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(13, 183, 244, 0)); }
    50%      { filter: drop-shadow(0 0 10px rgba(13, 183, 244, .65)); }
}
.lp-brand-divider { height: 38px; background: #b5d9ee; }
.lp-brand-text strong { font-size: 17px; color: #081b50; }
.lp-brand-text span { display: block; margin-top: 5px; font-size: 14px; color: #5276ae; }
.lp-middle { padding: 64px 0 48px; gap: 24px; }
.lp-hero { margin-bottom: 18px; }
.lp-hero-welcome { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; color: #506fa5; background: none; animation: fadeInUp .6s both; }
.lp-hero-welcome::before, .lp-hero-sub::before { content: ''; width: 30px; height: 2px; background: #0db7f4; flex-shrink: 0; }
.lp-hero-title {
    font-size: 40px; line-height: 1.15; letter-spacing: 0;
    background: linear-gradient(90deg, #071b4e 0%, #129cf0 25%, #071b4e 50%, #129cf0 75%, #071b4e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp .6s both, heroTitleShimmer 7s linear infinite;
    animation-delay: 0s, .8s;
}
.lp-hero-title span {
    background: linear-gradient(90deg, #0786ff 0%, #7fe6ff 30%, #129cf0 60%, #7fe6ff 80%, #0786ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroTitleShimmer 5s linear infinite;
    animation-delay: 1s;
}
@keyframes heroTitleShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: -200% center; }
}
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .lp-hero-title { color: #071b4e; }
    .lp-hero-title span { color: #129cf0; }
}
.lp-hero-description { margin-top: 18px; color: #5472a7; font-size: 16px; line-height: 1.55; }
.lp-hero-sub { margin: 0 0 18px; gap: 14px; color: #081b50; font-size: 16px; font-weight: 600; }
.main-modules { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mm { --accent: #0786ff; --tint: #e8f5ff; min-width: 0; min-height: 252px; padding: 22px 24px 52px; align-items: flex-start; gap: 12px; text-align: left; border-radius: 8px; border: 1px solid #c7e6fb; background: rgba(255,255,255,.95); font-family: inherit; }
.mm[data-portal="breeding"] { --accent: #00ad70; --tint: #e0faf0; }
.mm[data-portal="agronomic"] { --accent: #ef850d; --tint: #fff3e3; }
.mm[data-portal="lab"] { --accent: #7041ff; --tint: #f0edff; }
.mm::before { left: 0; top: auto; bottom: 0; width: 100%; height: 95px; background: var(--tint); clip-path: polygon(100% 0, 100% 100%, 0 100%); transform: none; animation: none; }
.mm:hover, .mm.selected { border-color: var(--accent); box-shadow: 0 5px 18px #143b5614; }
.mm.selected { background: #f2fffb; transform: none; outline: 1px solid var(--accent); }
.mm-icon, .mm.selected .mm-icon, .mm.coming-soon .mm-icon { width: 66px; height: 66px; background: var(--tint); color: var(--accent); border-radius: 20px; filter: none; animation: none; }
.mm-icon svg { width: 32px; height: 32px; stroke: currentColor; }
.mm-icon svg circle[fill] { fill: currentColor; }
.mm-label, .mm.selected .mm-label { font-size: 18px; line-height: 1.3; color: #081b50; }
.mm-desc { margin: 0; font-size: 14px; line-height: 1.45; color: #5574a9; }
.mm.selected::after { width: 26px; height: 26px; top: 14px; right: 16px; background-color: var(--accent); }
.mm-arrow { position: absolute; bottom: 16px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--accent); }
.mm-arrow svg { width: 22px; height: 22px; }
.mm.selected .mm-arrow { background: #48cda2; color: white; }
.mm.coming-soon { opacity: 1; background: #fcfbff; }
.mm-badge { right: 14px; top: 14px; border-radius: 12px; font-size: 10px; letter-spacing: 0; }
.lp-security { padding: 14px 10px; gap: 0; background: rgba(255,255,255,.72); border-radius: 8px; }
.sec-item { padding: 0 22px; background: none; border: 0; border-radius: 0; gap: 16px; min-width: 0; }
.sec-item + .sec-item { border-left: 1px solid #d3e5f5; }
.sec-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; }
.sec-icon svg { width: 23px; height: 23px; }
.sec-icon.green { color: #008bff; background: #e5f6ff; }
.sec-icon.blue { color: #00b788; background: #e2fcf5; }
.sec-icon.orange { color: #7143ff; background: #f0edff; }
.sec-text strong { font-size: 12px; color: #081b50; }
.sec-text span { display: block; margin-top: 4px; font-size: 12px; color: #6283b6; }
.lp-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: auto 0 0; color: #5c7caf; font-size: 11px; line-height: 1.6; }
.lp-footer span + span { border-left: 1px solid #90afd0; padding-left: 10px; }
.lp-footer strong { color: #3567a7; }

.lp-footer span {
    opacity: 0;
    animation: fadeInUp .5s ease both;
}
.lp-footer span:nth-child(1) { animation-delay: .95s; }
.lp-footer span:nth-child(2) { animation-delay: 1.05s; }
.lp-footer span:nth-child(3) { animation-delay: 1.15s; }

.lp-footer strong {
    position: relative;
    transition: color .2s ease;
}
.lp-footer strong::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .3s ease;
}
.lp-footer span:hover strong { color: #0786ff; }
.lp-footer span:hover strong::after { width: 100%; }
.rp { width: 27%; min-width: 380px; min-height: 100svh; height: auto; padding: 70px 28px; background: #f5fbff; box-shadow: none; overflow: visible; }
.rp::before { display: none; }
.rp-inner { padding: 56px 30px 64px; background: rgba(255,255,255,.95); border: 1px solid #fff; border-radius: 8px; box-shadow: 0 8px 36px #57b9f012; max-width: 400px; }
.rp-logo { margin-bottom: 34px; }
.rp-logo img { width: 245px; max-width: 100%; height: auto; object-fit: contain; }
.rp-division { margin-top: 6px; font-size: 12px; color: #245d9f; }
.rp-heading { margin-bottom: 32px; }
.rp-heading h2 { font-size: 20px; color: #081b50; margin-bottom: 8px; }
.rp-heading p { font-size: 13px; line-height: 1.5; color: #708abc; }
.field { margin-bottom: 22px; }
.field label { color: #0c2050; font-size: 13px; letter-spacing: 0; }
.iw input { height: 46px; border-radius: 8px; border: 1px solid #c9ddf5; background: #fcfdff; font-size: 14px; padding-left: 44px; }
.iw input::placeholder { color: #9bb4d7; }
.iw .fi { left: 15px; color: #6384b4; }
.iw .fi svg, .btn-eye svg { width: 18px; height: 18px; }
.btn-eye { color: #6384b4; }
.cf-wrap { min-height: 65px; margin: 0 0 18px; }
.cf-turnstile { width: 100%; }
.btn-submit { height: 50px; border-radius: 8px; background: linear-gradient(110deg, #006dbd, #189bf0); font-size: 18px; letter-spacing: 0; }
.btn-submit > svg { width: 22px; height: 22px; }
.rp-footer { display: none; }
.mm:focus-visible, .btn-eye:focus-visible, .btn-submit:focus-visible { outline: 3px solid #157dd6; outline-offset: 4px; }
.portal-toast { max-width: calc(100% - 32px); white-space: normal; }
@media (min-width: 1500px) { .lp-middle { gap: 22px; } .mm { min-height: 258px; } }
@media (min-width: 901px) and (max-width: 1450px) {
    .rp { padding-left: 20px; padding-right: 20px; }
    .rp-inner { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1251px) and (max-height: 820px) {
    .lp { padding-top: 28px; padding-bottom: 20px; }
    .lp-middle { padding: 30px 0 26px; gap: 18px; }
    .lp-hero { margin-bottom: 4px; }
    .lp-hero-title { font-size: 34px; }
    .mm { min-height: 230px; padding: 18px 18px 48px; }
    .mm-icon, .mm.selected .mm-icon, .mm.coming-soon .mm-icon { width: 52px; height: 52px; }
    .rp { padding-top: 40px; padding-bottom: 40px; }
    .rp-inner { padding-top: 36px; padding-bottom: 40px; }
}
@media (max-width: 1250px) {
    .lp { padding: 30px; }
    .lp-hero-title { font-size: 32px; }
    .lp-middle { padding: 44px 0 32px; }
    .main-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mm { min-height: 214px; padding: 18px 20px 48px; }
    .mm-icon, .mm.selected .mm-icon, .mm.coming-soon .mm-icon { width: 48px; height: 48px; border-radius: 14px; }
    .sec-item { padding: 0 10px; gap: 8px; }
    .sec-icon { width: 30px; height: 30px; }
    .sec-text strong, .sec-text span { font-size: 10px; }
}
@media (max-width: 900px) {
    body { flex-direction: column; }
    .lp { display: flex; flex: none; min-height: auto; padding: 28px 24px; }
    .lp-middle { padding: 36px 0 24px; }
    .rp { min-width: 0; width: 100%; min-height: auto; padding: 32px 20px 48px; }
    .rp-inner { padding: 32px 24px; max-width: 440px; }
    .lp-security { margin-top: 0; }
}
@media (max-width: 480px) {
    .lp { padding: 24px 18px; }
    .lp-brand { gap: 10px; }
    .lp-brand img { width: 62px; height: 42px; }
    .lp-brand-text strong { font-size: 13px; }
    .lp-brand-text span { font-size: 11px; }
    .lp-hero-title { font-size: 28px; }
    .lp-hero-description { font-size: 14px; }
    .lp-hero-description br { display: none; }
    .main-modules { gap: 10px; }
    .mm { padding: 16px 12px 48px; }
    .mm-label { font-size: 15px; }
    .mm.selected .mm-label { font-size: 15px; }
    .mm-desc { font-size: 12px; }
    .mm-desc br { display: none; }
    .mm-badge { font-size: 8px; right: 6px; top: 8px; }
    .lp-security { flex-direction: column; gap: 14px; padding: 16px; }
    .sec-item + .sec-item { border-left: 0; }
    .sec-text strong, .sec-text span { font-size: 12px; }
    .lp-footer span + span { border: 0; padding: 0; }
    .rp { padding: 24px 12px 36px; }
    .rp-inner { padding: 32px 16px; }
}
@media (max-width: 360px) {
    .rp { padding: 24px 0 36px; }
    .rp-inner { padding: 32px 8px; }
}
