@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-main: #09111f;
    --panel: rgba(10, 18, 32, 0.86);
    --panel-strong: #091724;
    --input: rgba(14, 27, 45, 0.94);
    --border: rgba(124, 154, 196, 0.16);
    --text-main: #eef4ff;
    --text-soft: #95a8c4;
    --text-light: #f8fbff;
    --accent: #59c3c3;
    --accent-strong: #2f8fb1;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(47, 143, 177, 0.24), transparent 26%),
        radial-gradient(circle at right 25%, rgba(89, 195, 195, 0.18), transparent 24%),
        linear-gradient(180deg, #08101c 0%, #0f1a2d 100%);
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

.login-layout {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    gap: 20px;
    flex: 1;
    align-items: stretch;
}

.login-showcase,
.login-panel {
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-showcase {
    padding: 34px 34px 36px;
    background:
        linear-gradient(160deg, rgba(15, 31, 52, 0.98), rgba(10, 21, 37, 0.95)),
        radial-gradient(circle at top right, rgba(89, 195, 195, 0.22), transparent 30%);
    color: var(--text-light);
    display: grid;
    align-content: start;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.login-showcase::after {
    content: "";
    position: absolute;
    inset: auto -90px -100px auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 195, 195, 0.18), rgba(89, 195, 195, 0));
    pointer-events: none;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: inherit;
    opacity: 0.75;
}

.login-showcase h1,
.login-panel h2 {
    font-family: 'Space Grotesk', sans-serif;
}

.login-showcase h1 {
    font-size: clamp(3rem, 5vw, 4.25rem);
    max-width: 9ch;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.showcase-text {
    max-width: 38ch;
    color: rgba(237, 245, 241, 0.78);
    line-height: 1.7;
    font-size: 1.04rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.showcase-card {
    min-height: 132px;
    padding: 20px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(37, 51, 74, 0.92), rgba(28, 41, 63, 0.88));
    border: 1px solid rgba(124, 154, 196, 0.14);
    display: grid;
    align-content: space-between;
    gap: 16px;
}

.showcase-card span {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(237, 245, 241, 0.72);
}

.showcase-card strong {
    font-size: 1.02rem;
    line-height: 1.45;
}

.login-panel {
    background: var(--panel);
    padding: 30px 28px;
    display: grid;
    align-content: start;
    min-height: 100%;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #17304f, #2f8fb1);
    color: var(--text-light);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.login-panel h2 {
    font-size: clamp(2rem, 2.4vw, 2.7rem);
    letter-spacing: -0.04em;
}

.input-box {
    position: relative;
    margin-top: 14px;
}

.input-box input {
    width: 100%;
    padding: 17px 18px;
    border-radius: 18px;
    border: 1px solid rgba(124, 154, 196, 0.08);
    background: var(--input);
    outline: none;
    color: var(--text-main);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-box input:focus,
.input-box input:valid {
    border-color: rgba(89, 195, 195, 0.54);
    box-shadow: 0 0 0 4px rgba(89, 195, 195, 0.14);
}

.input-box input::placeholder {
    color: #8194b2;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.btn-login,
.btn-register {
    border: 0;
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    font: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
}

.btn-login {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #07111d;
    box-shadow: 0 18px 34px rgba(47, 143, 177, 0.28);
}

.btn-register {
    background: rgba(17, 31, 50, 0.78);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.msg {
    min-height: 24px;
    margin-top: 12px;
    text-align: left;
    color: var(--accent-strong);
}

.login-termos {
    margin-top: 18px;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 38ch;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-termos a,
.footer a {
    color: var(--text-main);
    text-decoration: none;
}

.footer {
    padding: 0 0 34px;
}

.footer-line {
    width: min(1180px, calc(100% - 32px));
    height: 1px;
    margin: 0 auto 22px;
    background: linear-gradient(90deg, transparent, rgba(89, 195, 195, 0.3), transparent);
}

.footer-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left p,
.footer-right p,
.footer-divider {
    color: var(--text-soft);
}

.footer-divider {
    margin: 0 8px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--input) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 9999s ease-in-out 0s;
}

@media (max-width: 980px) {
    .login-layout,
    .showcase-grid,
    .button-group {
        grid-template-columns: 1fr;
    }

    .login-showcase h1 {
        max-width: 100%;
    }

    .login-layout {
        gap: 18px;
    }
}

@media (max-width: 760px) {
    .login-layout {
        width: min(100% - 20px, 1180px);
        padding-top: 20px;
    }

    .login-showcase,
    .login-panel {
        padding: 26px;
        border-radius: 26px;
    }

    .footer-container {
        flex-direction: column;
    }
}
