/* Galaxy Meta Eggs — login & register */

body.gx-auth {
    min-height: 100dvh;
}

.gx-auth-wrap {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 8px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));
}

.gx-egg {
    position: relative;
    padding: 22px 4px 8px;
}

.gx-egg::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: min(420px, 92%);
    height: calc(100% - 8px);
    transform: translateX(-50%);
    border-radius: 50% 50% 46% 46% / 38% 38% 62% 62%;
    background:
        conic-gradient(from 120deg, #5ce8ff, #8b6bff, #f6c85a, #ff6ad5, #5ce8ff);
    opacity: 0.55;
    filter: blur(0.2px);
    z-index: 0;
    animation: gxSpin 16s linear infinite;
}

.gx-egg::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 14px;
    width: min(400px, 86%);
    height: calc(100% - 20px);
    transform: translateX(-50%);
    border-radius: 50% 50% 46% 46% / 38% 38% 62% 62%;
    background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(180deg, #141a3c, #070b1c 70%);
    z-index: 0;
}

.gx-panel {
    position: relative;
    z-index: 1;
    margin: 18px 18px 22px;
    padding: 22px 18px 20px;
    border-radius: 28px;
    background: rgba(8, 12, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}

.gx-panel-mark {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 14px;
    text-align: center;
}

.gx-panel-mark img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px rgba(246, 200, 90, 0.45), 0 0 28px rgba(92, 232, 255, 0.35);
}

.gx-panel-mark p {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gx-gold-2);
}

.gx-panel h1 {
    margin: 0;
    font-family: var(--gx-display);
    font-size: 1.55rem;
}

.gx-panel .gx-lead {
    margin: 6px 0 0;
    color: var(--gx-mute);
    font-size: 0.95rem;
}

.gx-panel form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.gx-field,
.gx-saved {
    position: relative;
    display: block;
}

.gx-saved > span:first-child {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gx-mute);
}

.gx-field input,
.gx-saved select {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0 44px 0 44px;
    font: inherit;
    outline: none;
}

.gx-saved select {
    padding-right: 16px;
}

.gx-saved select option {
    color: #111;
}

.gx-field input:focus,
.gx-saved select:focus {
    border-color: rgba(92, 232, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(92, 232, 255, 0.12);
}

.gx-field .gx-ico,
.gx-saved .gx-ico {
    position: absolute;
    left: 14px;
    bottom: 16px;
    width: 18px;
    height: 18px;
    color: var(--gx-gold);
    pointer-events: none;
}

.gx-field .gx-ico svg,
.gx-saved .gx-ico svg {
    width: 18px;
    height: 18px;
    display: block;
}

.gx-eye {
    position: absolute;
    right: 8px;
    bottom: 7px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.gx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.88rem;
}

.gx-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gx-mute);
}

.gx-forgot {
    color: var(--gx-cyan);
    text-decoration: none;
    font-weight: 700;
}

.gx-ref {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(246, 200, 90, 0.1);
    border: 1px solid rgba(246, 200, 90, 0.25);
    color: var(--gx-gold-2);
    text-align: center;
}

.auth-msg {
    min-height: 1.2em;
    color: #ff9aa8;
    font-size: 0.9rem;
    text-align: center;
}

.gx-go {
    position: relative;
    height: 52px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    color: #1a1408;
    background: linear-gradient(135deg, #fff3c4, #f6c85a 42%, #d39a2a);
    box-shadow: 0 12px 28px rgba(246, 200, 90, 0.3);
    overflow: hidden;
}

.gx-go i {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: gxShine 3.2s ease-in-out infinite;
}

.gx-switch {
    margin: 14px 0 0;
    text-align: center;
    color: var(--gx-mute);
}

.gx-switch a {
    color: var(--gx-cyan);
    font-weight: 800;
    text-decoration: none;
}

@keyframes gxSpin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@media (max-width: 420px) {
    .gx-panel { margin: 16px 10px 18px; padding: 18px 14px; }
}
