* {
    box-sizing: border-box;
}

:root {
    --blue-950: #001f55;
    --blue-900: #00347e;
    --blue-800: #0057b8;
    --blue-700: #075fbf;
    --yellow: #f7c400;
    --yellow-soft: #fff2b7;
    --green: #0f8f45;
    --text: #061230;
    --muted: #5f6b80;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--blue-950);
}

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

body::before {
    z-index: -2;
    background: url("../Imagens/img__0025_Camada-2.png") center / cover no-repeat;
}

body::after {
    z-index: -1;
    background:
        radial-gradient(circle at 18% 16%, rgba(0, 104, 217, 0.64), transparent 34%),
        linear-gradient(120deg, rgba(0, 22, 68, 0.96), rgba(0, 79, 181, 0.88) 52%, rgba(0, 39, 112, 0.96));
}

.admin-entry {
    position: fixed;
    right: 14px;
    bottom: 12px;
    z-index: 20;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    text-decoration: none;
}

.admin-entry:hover {
    color: #fff;
}

.page {
    min-height: 100vh;
}

.public-shell {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(430px, 520px) minmax(520px, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "brand intro features"
        "brand form partners"
        "brand eventinfo partners";
    gap: 18px 48px;
    width: min(1760px, 100%);
    margin: 0 auto;
    padding: 28px 72px 0;
}

.brand-column {
    grid-area: brand;
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: calc(100vh - 96px);
    padding-top: 86px;
}

.event-logo {
    width: min(100%, 340px);
    justify-self: center;
    filter:
        drop-shadow(0 0 1px #fff)
        drop-shadow(0 0 2px #fff)
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.9))
        drop-shadow(0 18px 26px rgba(0, 12, 40, 0.34));
}

.event-map {
    display: block;
    width: min(520px, 118%);
    justify-self: center;
    margin-top: 14px;
    border-radius: 0;
    box-shadow: none;
}

.event-card,
.contact-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid rgba(86, 185, 255, 0.55);
    border-radius: 14px;
    padding: 22px 24px;
    color: #fff;
    background: rgba(0, 50, 128, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.event-card {
    width: min(360px, 100%);
    justify-self: center;
}

.event-card strong,
.contact-card strong {
    display: block;
    font-size: 20px;
    line-height: 1.35;
}

.event-card p,
.contact-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.event-card-icon,
.contact-icon,
.panel-icon,
.feature-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    position: relative;
}

.event-card-icon,
.contact-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 10px;
}

.event-card-icon::before {
    content: "";
    width: 20px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 2px;
}

.event-card-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 18px;
    height: 2px;
    background: #fff;
}

.contact-icon {
    border-radius: 50%;
}

.contact-icon::before {
    content: "";
    width: 20px;
    height: 16px;
    border: 3px solid #fff;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

.hero-intro {
    grid-area: intro;
    align-self: end;
    color: #fff;
}

.hero-intro h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 2.35vw, 48px);
    line-height: 1.1;
}

.hero-intro p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
}

.feature-row {
    grid-area: features;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    align-self: start;
    padding-top: 72px;
    color: #fff;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.feature-item p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border: 3px solid var(--yellow);
    border-radius: 50%;
}

.feature-icon.check::before {
    content: "";
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--yellow);
    border-bottom: 3px solid var(--yellow);
    transform: rotate(-45deg) translate(1px, -1px);
}

.feature-icon.shield {
    border-radius: 10px 10px 14px 14px;
}

.feature-icon.shield::before {
    content: "";
    width: 8px;
    height: 14px;
    border-right: 3px solid var(--yellow);
    border-bottom: 3px solid var(--yellow);
    transform: rotate(40deg) translate(-1px, -1px);
}

.feature-icon.users::before,
.feature-icon.users::after {
    content: "";
    position: absolute;
    border: 3px solid var(--yellow);
}

.feature-icon.users::before {
    width: 8px;
    height: 8px;
    top: 5px;
    border-radius: 50%;
}

.feature-icon.users::after {
    width: 18px;
    height: 9px;
    bottom: 5px;
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
}

.panel {
    grid-area: form;
    align-self: start;
    width: 100%;
    margin-top: 58px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 14px;
    box-shadow: 0 28px 60px rgba(0, 17, 59, 0.32);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.compact-heading {
    margin-bottom: 14px;
}

.panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue-700);
}

.panel-icon::before {
    content: "";
    width: 24px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 3px;
}

.panel-icon::after {
    content: "";
    position: absolute;
    top: 16px;
    width: 14px;
    height: 3px;
    background: #fff;
}

.panel-heading h2 {
    margin: 0;
    color: #082660;
    font-size: 20px;
}

.panel-heading p {
    margin: 8px 0 0;
    color: #17223a;
    font-size: 14px;
}

.form {
    display: grid;
    gap: 13px;
}

label {
    color: #10214a;
    font-size: 14px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c5cfdb;
    border-radius: 8px;
    padding: 0 14px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    background: #fff;
}

input:focus,
select:focus {
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.16);
}

input.field-error {
    border-color: #d71920 !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.14) !important;
}

button {
    width: fit-content;
    min-height: 43px;
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    background: var(--yellow);
    color: #000;
    font-weight: 700;
    cursor: pointer;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 43px;
    border-radius: 8px;
    padding: 0 22px;
    background: var(--yellow);
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

button:hover {
    background: #eab900;
}

.button-link:hover {
    background: #eab900;
}

.button-wide {
    width: 100%;
    margin-top: 8px;
}

.notice {
    margin: 18px 0 0;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 15px;
}

.notice.success {
    color: #09612f;
    background: #e8fff0;
    border: 1px solid #a8e7bd;
    font-weight: 700;
}

.notice.error {
    color: #a40f0f;
    background: #fff1f1;
    border: 1px solid #f0b4b4;
    font-weight: 700;
}

.company {
    margin: 12px 0 18px;
    padding: 15px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8d4, #ffe58b);
    color: #1e1a00;
    font-size: 16px;
}

.company p {
    margin: 0;
}

.register-form {
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #d8dde8;
}

.register-form input {
    margin-bottom: 8px;
}

.form-error {
    min-height: 18px;
    margin: -4px 0 0;
    color: #a40f0f;
    font-size: 14px;
    font-weight: 700;
}

.event-info {
    grid-area: eventinfo;
    align-self: start;
    width: 100%;
    margin-top: 2px;
    padding: 12px 18px 14px;
    color: #fff;
    background: linear-gradient(145deg, rgba(0, 92, 204, 0.84), rgba(0, 53, 142, 0.9));
    border: 1px solid rgba(103, 195, 255, 0.52);
    border-radius: 10px;
    box-shadow: 0 18px 36px rgba(0, 17, 59, 0.22);
}

.event-info-header {
    display: grid;
    justify-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.event-info-row {
    display: grid;
    grid-template-columns: 36px max-content;
    gap: 10px;
    align-items: center;
    width: max-content;
    max-width: 100%;
}

.event-info-row strong,
.event-info-row span,
.event-info-card strong,
.event-info-card span {
    display: block;
}

.event-info-row strong {
    font-size: clamp(18px, 1.28vw, 24px);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
}

.event-info-row span,
.event-info-card span {
    color: var(--yellow);
    font-weight: 800;
}

.event-info-row span {
    margin-top: 2px;
    font-size: clamp(13px, 0.9vw, 17px);
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.event-info-icon {
    display: block;
    width: 34px;
    height: 38px;
    object-fit: contain;
    justify-self: center;
}

.event-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.event-info-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px;
    align-items: center;
    min-height: 76px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    background: rgba(0, 103, 211, 0.45);
    overflow: hidden;
}

.event-info-image {
    display: block;
    width: 48px;
    max-height: 52px;
    object-fit: contain;
    justify-self: center;
    filter: drop-shadow(0 4px 6px rgba(0, 24, 80, 0.18));
}

.event-info-card strong {
    color: #020817;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
}

.event-info-card span {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 900;
    text-align: center;
}

.partners-column {
    grid-area: partners;
    align-self: start;
    padding-top: 28px;
}

.partners-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.partners-title h2 {
    margin: 0;
    font-size: 18px;
}

.partners-title span {
    flex: 1;
    height: 1px;
    background: rgba(101, 196, 255, 0.7);
}

.sponsor-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 12px;
}

.sponsor-bar img {
    display: block;
    width: 100%;
    height: 90px;
    padding: 16px 18px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(0, 20, 70, 0.18);
}

.contact-card {
    margin-top: 26px;
}

.site-footer {
    grid-area: footer;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
    margin: 28px -72px 0;
    padding: 22px 72px;
    color: #fff;
    background: rgba(0, 19, 54, 0.72);
    font-size: 14px;
}

.site-footer span:nth-child(2) {
    text-align: center;
}

.site-footer span:nth-child(3) {
    text-align: right;
}

.admin-shell {
    position: relative;
    display: block;
    min-height: 100vh;
    padding: 0;
}

.admin-layout .event-header {
    position: absolute;
    top: clamp(120px, 16vh, 165px);
    left: clamp(42px, 5vw, 96px);
    display: flex;
    justify-content: center;
    width: auto;
    padding-top: 0;
}

.admin-layout .event-logo {
    width: clamp(200px, 17vw, 260px);
}

.admin-panel {
    position: absolute;
    top: clamp(118px, 14vh, 155px);
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, calc(100vw - 360px));
    margin-top: 0;
    padding: 28px 20px 20px;
}

.admin-layout .sponsor-bar {
    display: none;
}

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

.admin-header h1 {
    margin: 0;
    color: #082660;
}

.admin-link,
.admin-user a {
    color: var(--blue-700);
    font-weight: 700;
    text-decoration: none;
}

.admin-form {
    margin-top: 24px;
}

.admin-user {
    margin: 18px 0 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-box {
    align-content: start;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    min-width: 0;
}

.admin-box h2 {
    margin: 0;
    color: #082660;
    font-size: 18px;
}

.admin-box input[type="file"] {
    min-width: 0;
    padding: 10px;
    font-size: 13px;
}

.helper {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1420px) {
    .public-shell {
        grid-template-columns: minmax(250px, 340px) minmax(410px, 500px) minmax(440px, 1fr);
        gap: 22px 30px;
        padding-inline: 36px;
    }

    .event-logo {
        width: min(100%, 350px);
    }

    .sponsor-bar {
        grid-template-columns: repeat(3, minmax(112px, 1fr));
    }

    .sponsor-bar img {
        height: 82px;
    }

    .site-footer {
        margin-inline: -36px;
        padding-inline: 36px;
    }
}

@media (max-width: 1080px) {
    .public-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "brand"
            "form"
            "eventinfo"
            "features"
            "partners";
        padding: 26px 18px 0;
    }

    .admin-shell {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 28px 18px;
    }

    .admin-layout .event-header {
        position: static;
        width: 100%;
        padding-top: 0;
    }

    .admin-layout .event-logo {
        width: min(210px, 70vw);
    }

    .admin-panel {
        position: static;
        width: min(760px, 100%);
        transform: none;
    }

    .brand-column {
        min-height: 0;
        align-content: start;
        padding-top: 0;
    }

    .event-logo {
        width: min(270px, 78vw);
    }

    .event-card {
        width: min(440px, 100%);
    }

    .hero-intro,
    .feature-row,
    .partners-column,
    .event-info,
    .panel {
        width: min(720px, 100%);
        justify-self: center;
    }

    .feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 0;
    }

    .panel,
    .event-info,
    .partners-column {
        margin-top: 0;
        padding-top: 0;
    }

    .event-info {
        padding: 14px 18px 16px;
    }

    .sponsor-bar {
        grid-template-columns: repeat(3, minmax(94px, 1fr));
    }

    .site-footer {
        grid-template-columns: 1fr;
        margin: 26px -18px 0;
        padding: 18px;
        text-align: center;
    }

    .site-footer span:nth-child(2),
    .site-footer span:nth-child(3) {
        text-align: center;
    }

    .admin-layout .event-header {
        grid-area: auto;
    }
}

@media (max-width: 640px) {
    .admin-entry {
        top: 12px;
        right: 12px;
        bottom: auto;
    }

    .public-shell {
        gap: 20px;
    }

    .hero-intro h1 {
        font-size: 32px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .panel {
        padding: 22px 18px;
    }

    .panel-heading {
        align-items: center;
    }

    .panel-icon {
        width: 44px;
        height: 44px;
    }

    .sponsor-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sponsor-bar img {
        height: 76px;
        padding: 12px;
    }

    .event-map {
        width: min(520px, 112%);
    }

    .event-info-grid {
        grid-template-columns: 1fr;
    }

    .event-info-card {
        min-height: 70px;
    }

    .event-info-row {
        grid-template-columns: 38px 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
