:root {
    --entry-bg-image: url("../images/gmz3.png");
}

.entry-page {
    position: relative;
    overflow-x: hidden;
    color: #fff;
    background-color: #07111f;
    background-image:
        linear-gradient(135deg, rgba(7, 18, 34, 0.9), rgba(14, 33, 58, 0.48)),
        var(--entry-bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.entry-page::before,
.entry-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.entry-page::before {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 195, 107, 0.18), transparent 24%),
        radial-gradient(circle at 82% 28%, rgba(90, 175, 255, 0.24), transparent 28%),
        radial-gradient(circle at 65% 82%, rgba(255, 114, 114, 0.18), transparent 24%);
    opacity: 0.95;
}

.entry-page::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.05));
    mix-blend-mode: screen;
    opacity: 0.26;
}

.entry-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: clamp(28px, 6vw, 72px);
    min-height: 100svh;
    padding: clamp(24px, 5vw, 56px);
}

.entry-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    max-width: 680px;
    animation: fade-up 0.9s ease both;
}

.entry-copy {
    padding-top: clamp(12px, 6vh, 64px);
}

.entry-kicker {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
}

.entry-title {
    max-width: 8ch;
    font-size: clamp(3.2rem, 8vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: 0.08em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.entry-desc {
    max-width: 32rem;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.8;
}

.entry-form {
    display: grid;
    gap: 14px;
    width: min(100%, 620px);
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
    box-shadow: 0 26px 80px rgba(5, 16, 31, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.field-label {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
}

.field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.field-row input {
    width: 100%;
    min-height: 60px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.field-row input::placeholder {
    color: rgba(255, 255, 255, 0.54);
}

.field-row input:focus {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.primary-btn {
    min-width: 154px;
    min-height: 60px;
    padding: 0 28px;
    border-radius: 999px;
    color: #08101e;
    font-weight: 700;
    background: linear-gradient(135deg, #fff8c7, #ffffff 42%, #add8ff 100%);
    box-shadow: 0 18px 42px rgba(255, 243, 176, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 48px rgba(255, 243, 176, 0.3);
}

.entry-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.field-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.6;
}

.text-btn {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    transition: opacity 0.25s ease;
}

.text-btn:hover {
    opacity: 0.76;
}

.preview-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    animation: fade-up 1.1s ease both;
}

.preview-card {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 720 / 1566;
    padding: 16px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 90px rgba(5, 15, 30, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: float-card 8s ease-in-out infinite;
}

.preview-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
}

.preview-frame {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background-image: var(--entry-bg-image);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.preview-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 35%, transparent 72%, rgba(0, 0, 0, 0.12));
}

.preview-glow {
    position: absolute;
    inset: auto auto 14% -22%;
    width: 70%;
    height: 14%;
    background: linear-gradient(90deg, rgba(255, 247, 153, 0.45), rgba(110, 215, 255, 0.2));
    filter: blur(28px);
    transform: rotate(-8deg);
    opacity: 0.72;
    animation: ribbon-shift 7s ease-in-out infinite;
}

.preview-date,
.preview-time,
.preview-second,
.preview-name,
.preview-cert {
    position: absolute;
    left: 50%;
    z-index: 1;
    width: 100%;
    padding: 0 9%;
    color: #fff;
    text-align: center;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
}

.preview-date,
.preview-time,
.preview-name,
.preview-cert {
}

.preview-date {
    top: 15%;
    font-size: clamp(1rem, 2.8vw, 1.55rem);
}

.preview-time {
    top: 28%;
    font-size: clamp(1.2rem, 3.4vw, 1.8rem);
}

.preview-second {
    top: 36.5%;
    font-size: clamp(3.8rem, 12vw, 5.8rem);
}

.preview-name {
    top: 59%;
    font-size: clamp(1.8rem, 5.5vw, 3rem);
    letter-spacing: 0.1em;
}

.preview-cert {
    top: 78%;
    font-size: clamp(1.9rem, 5.7vw, 3.1rem);
    letter-spacing: 0.16em;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-card {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ribbon-shift {
    0%,
    100% {
        transform: translate(-2%, 0) rotate(-8deg);
    }

    50% {
        transform: translate(8%, -4%) rotate(-6deg);
    }
}

@media (max-width: 960px) {
    .entry-shell {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .entry-hero {
        max-width: none;
    }

    .preview-stage {
        align-items: flex-start;
        padding-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .entry-shell {
        gap: 24px;
        padding: 20px 16px 28px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .primary-btn {
        width: 100%;
    }

    .entry-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-card {
        width: min(100%, 340px);
    }
}
