/* Register & Login — modern farm-open auth */

body.auth-register-page .gx-nav-shell::after,
body.auth-login-page .gx-nav-shell::after {
    display: none;
}

body.auth-register-page .gx-nav-links.is-simple,
body.auth-login-page .gx-nav-links.is-simple {
    gap: 0;
}

.gx-nav-links.is-simple a.gx-nav-cta {
    width: auto;
    height: 46px;
    min-width: 124px;
    padding: 0 10px 0 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: none;
    color: #fff;
    background: #2f6dff;
    box-shadow: 0 8px 18px rgba(47, 109, 255, 0.32);
    animation: none;
}

.gx-nav-links.is-simple a.gx-nav-cta::before {
    content: none;
    display: none;
    animation: none;
}

.gx-nav-links.is-simple a.gx-nav-cta span {
    font-size: 0.95rem;
    font-weight: 800;
}

.gx-nav-links.is-simple a.gx-nav-cta svg {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    color: #2f6dff;
    flex: 0 0 auto;
}

.gx-nav-links.is-simple a.gx-nav-cta.is-gold {
    color: #1a1408;
    background: #f3c14a;
    box-shadow: 0 8px 18px rgba(201, 148, 32, 0.32);
}

.gx-nav-links.is-simple a.gx-nav-cta.is-gold svg {
    background: #1a1408;
    color: #f3c14a;
}

.gx-nav-links.is-simple a.gx-nav-cta:hover {
    transform: none;
    filter: brightness(1.06);
}

.rg {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 8px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left));
    display: grid;
    gap: 16px;
}

.rg-farm {
    position: relative;
    margin: 0;
    width: 100%;
}

.rg-farm img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 58%;
    display: block;
    clip-path: polygon(6% 18%, 50% 0, 94% 18%, 94% 100%, 6% 100%);
    filter: saturate(1.06) contrast(1.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.rg-farm-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: polygon(6% 18%, 50% 0, 94% 18%, 94% 100%, 6% 100%);
    box-shadow: inset 0 0 0 2px rgba(243, 193, 74, 0.55);
}

.rg-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rg-trust li {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.rg-trust b {
    color: #f3c14a;
    font-size: 0.95rem;
    font-weight: 800;
}

.rg-trust span {
    color: var(--gx-mute);
    font-size: 0.72rem;
    font-weight: 700;
}

.rg-card {
    padding: 20px 18px 18px;
    border-radius: 22px;
    background: rgba(10, 14, 36, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.rg-card h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
}

.rg-lead {
    margin: 6px 0 16px;
    color: var(--gx-mute);
    line-height: 1.5;
}

.rg-card form {
    display: grid;
    gap: 8px;
}

.rg-label {
    margin: 6px 0 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d7def4;
}

.rg-secure {
    margin: 4px 0 0;
    text-align: center;
    color: #9dd6a5;
    font-size: 0.82rem;
    font-weight: 700;
}

.rg-go {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    border-radius: 16px;
    font-size: 1.08rem;
    font-weight: 800;
    color: #1a1408;
    background: #f3c14a;
    box-shadow: 0 10px 24px rgba(201, 148, 32, 0.35);
}

.rg-go i {
    display: none;
}

.rg-go .gx-go-ico {
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 50%;
    background: #1a1408;
    color: #f3c14a;
}

.rg-go.is-login {
    color: #fff;
    background: #2f6dff;
    box-shadow: 0 10px 24px rgba(47, 109, 255, 0.35);
}

.rg-go.is-login .gx-go-ico {
    background: #fff;
    color: #2f6dff;
}

@media (max-width: 420px) {
    .rg-trust span { font-size: 0.66rem; }
    .rg-card { padding: 16px 14px; }
}

/* Login / signup enter — one-shot, not a loop */
body.is-enter-lock {
    overflow: hidden;
}

.gx-enter[hidden] {
    display: none;
}

.gx-enter {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background: rgba(6, 10, 28, 0);
    pointer-events: none;
}

.gx-enter.is-on {
    animation: gxEnterFade 1.15s ease forwards;
}

.gx-enter-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 46%, rgba(243, 193, 74, 0.55), transparent 42%);
    opacity: 0;
}

.gx-enter.is-on .gx-enter-flash {
    animation: gxEnterFlash 1.15s ease forwards;
}

.gx-enter-core {
    position: relative;
    width: 96px;
    height: 96px;
}

.gx-enter-core img {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(243, 193, 74, 0.55), 0 12px 28px rgba(0, 0, 0, 0.4);
    transform: scale(0.72);
    opacity: 0;
}

.gx-enter.is-on .gx-enter-core img {
    animation: gxEnterMark 0.7s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
}

.gx-enter-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(243, 193, 74, 0.85);
    opacity: 0;
}

.gx-enter.is-on .gx-enter-ring {
    animation: gxEnterRing 0.9s ease-out forwards;
}

.gx-enter.is-on .gx-enter-ring.is-late {
    animation-delay: 0.16s;
    border-color: rgba(110, 180, 255, 0.7);
}

.gx-enter p {
    margin: 0;
    color: #f4e7c2;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
}

.gx-enter.is-on p {
    animation: gxEnterCopy 0.7s ease 0.12s forwards;
}

@keyframes gxEnterFade {
    0% { background: rgba(6, 10, 28, 0); }
    35% { background: rgba(6, 10, 28, 0.72); }
    100% { background: rgba(6, 10, 28, 1); }
}

@keyframes gxEnterFlash {
    0% { opacity: 0; transform: scale(0.6); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.35); }
}

@keyframes gxEnterMark {
    0% { opacity: 0; transform: scale(0.72) rotate(-8deg); }
    70% { opacity: 1; transform: scale(1.06) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes gxEnterRing {
    0% { opacity: 0.95; transform: scale(0.7); }
    100% { opacity: 0; transform: scale(1.85); }
}

@keyframes gxEnterCopy {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .gx-enter.is-on,
    .gx-enter.is-on .gx-enter-flash,
    .gx-enter.is-on .gx-enter-core img,
    .gx-enter.is-on .gx-enter-ring,
    .gx-enter.is-on p {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
