@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
    --primary: #0f172a;
    --primary-soft: #131b2e;
    --secondary: #2563eb;
    --secondary-hover: #1d4ed8;
    --surface: #fcf8fa;
    --card: rgba(255, 255, 255, 0.84);
    --text: #1b1b1d;
    --muted: #64748b;
    --border: #d7d9e0;
    --danger: #b91c1c;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--surface);
    font-family: "Inter", sans-serif;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(420px, 5fr);
    width: 100%;
    min-height: 100vh;
}

/* Painel institucional */
.login-page > section:first-child {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 64px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 22% 24%, rgb(37 99 235 / 18%), transparent 30%),
        radial-gradient(circle at 78% 74%, rgb(37 99 235 / 12%), transparent 34%),
        var(--primary-soft);
}

.login-page > section:first-child::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.12;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}

.login-page > section:first-child > div {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 650px;
}

.logo {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 108px;
    height: 108px;
    margin-bottom: 34px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 28px;
    color: #fff;
    background: rgb(255 255 255 / 6%);
    box-shadow: 0 20px 50px rgb(0 0 0 / 18%);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
    animation: float 6s ease-in-out infinite;
}

.logo::after {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 24px;
    height: 24px;
    border: 5px solid var(--primary-soft);
    border-radius: 50%;
    content: "";
    background: var(--secondary);
}

.login-page > section:first-child h1 {
    margin: 0 0 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.login-page > section:first-child p {
    max-width: 610px;
    margin: 0 auto;
    color: #94a3b8;
    font-size: 17px;
    line-height: 1.75;
}

/* Área do formulário */
.acess,
.access {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px;
    background:
        radial-gradient(circle at 75% 20%, rgb(37 99 235 / 8%), transparent 28%),
        var(--surface);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 24px 60px rgb(15 23 42 / 10%);
    backdrop-filter: blur(12px);
}

.login-card header {
    margin-bottom: 28px;
}

.login-card h2 {
    margin: 0 0 7px;
    color: var(--primary);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.login-card header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.login-card label {
    display: block;
    margin: 20px 0 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.login-card input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    color: var(--text);
    background: rgb(255 255 255 / 70%);
    font: inherit;
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-card input::placeholder {
    color: #9ca3af;
}

.login-card input:focus {
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}

.login-card button {
    width: 100%;
    min-height: 48px;
    margin-top: 26px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 20px rgb(15 23 42 / 15%);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.login-card button:hover {
    background: #222b3d;
    box-shadow: 0 10px 24px rgb(15 23 42 / 20%);
    transform: translateY(-1px);
}

.login-card button:active {
    transform: scale(0.985);
}

.error-message {
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: var(--danger);
    background: #fef2f2;
    font-size: 14px;
}

.register {
    margin: 24px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.register a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.register a:hover {
    text-decoration: underline;
}

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

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

@media (max-width: 900px) {
    .login-page {
        display: block;
    }

    .login-page > section:first-child {
        display: none;
    }

    .acess,
    .access {
        min-height: 100vh;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .acess,
    .access {
        padding: 16px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 12px;
    }

    .login-card h2 {
        font-size: 24px;
    }
}
