* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    color: #1b2f45;
    background:
        radial-gradient(circle at 85% 15%, rgba(45, 91, 199, 0.12), transparent 30%),
        linear-gradient(180deg, #f4f7fb 0%, #eaf0f8 100%);
    display: grid;
    grid-template-rows: 1fr auto;
}

.container-login {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px 22px 8px;
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(280px, 1fr);
    gap: 20px;
    align-items: flex-start;
}

.box-login {
    background: #ffffff;
    border: 1px solid #d9e4f2;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(20, 40, 62, 0.12);
    padding: 22px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.fg-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #24435f 0%, #1f344a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.fg-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.login-brand-text small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #7b8797;
    margin-bottom: 1px;
}

.login-brand-text h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    color: #183751;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.tela-login, .tela-redefinir { display: none; }
.tela-login.ativa, .tela-redefinir.ativa { display: block; }

.box-login h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #183751;
}

.box-login p {
    margin: 4px 0 12px;
    color: #5f6f85;
    font-size: 13px;
}

.box-login input {
    width: 100%;
    height: 40px;
    border: 1px solid #cedaea;
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 10px;
    font-size: 14px;
    outline: none;
}

.box-login input:focus {
    border-color: #2d5bc7;
    box-shadow: 0 0 0 3px rgba(45, 91, 199, 0.18);
}

.login-intro {
    margin: 2px 0 10px;
    color: #5f6f85;
    font-size: 14px;
    line-height: 1.35;
}

.login-label {
    display: block;
    margin: 8px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1b2f45;
}

.link-esqueci {
    text-align: right;
    margin: -4px 0 10px;
}

.link-esqueci a {
    color: #2d5bc7;
    font-size: 13px;
    text-decoration: none;
}

.area-botao-login {
    display: flex;
    gap: 8px;
}

.area-botao-login button {
    flex: 1;
    height: 40px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #ffffff;
    color: #1b2f45;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.area-botao-login .btn-neutro {
    background: #5f6f85;
    color: #fff;
    border-color: #5f6f85;
}

.area-botao-login button:hover { background: #f5f7fb; }

.login-termos {
    margin: 12px 0 0;
    font-size: 12px;
    color: #5f6f85;
    line-height: 1.4;
}

.login-termos a {
    color: #2d5bc7;
    text-decoration: none;
}

.login-showcase {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 2px;
}

.showcase-stack {
    width: min(340px, 100%);
    display: grid;
    gap: 12px;
}

.showcase-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(183, 198, 220, 0.58);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(20, 40, 62, 0.06);
    padding: 12px 14px 13px;
    color: #46586f;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.showcase-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.showcase-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20, 40, 62, 0.08);
}

.showcase-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-icon--support {
    background: linear-gradient(145deg, #f3ecff 0%, #e8d9ff 100%);
}

.showcase-icon--tools {
    background: linear-gradient(145deg, #ffe8ea 0%, #ffd4d8 100%);
}

.showcase-icon--cobrax {
    background: linear-gradient(145deg, #e8fbf0 0%, #d4f5e2 100%);
}

.showcase-tag {
    display: inline-flex;
    margin: 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3f5f87;
    background: rgba(64, 107, 170, 0.12);
}

.showcase-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #304760;
}
.showcase-card p {
    margin: 0 0 6px;
    color: #647892;
    line-height: 1.35;
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.showcase-card span {
    font-size: 10px;
    color: #476ea8;
    font-weight: 600;
}

.showcase-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(131, 162, 206, 0.75);
    box-shadow: 0 8px 20px rgba(20, 40, 62, 0.1);
}

/* Card especial — Criador do Sistema */
.showcase-card--creator {
    margin-top: 4px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.showcase-card--creator:hover {
    transform: translateY(-3px);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.showcase-creator-glow {
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, #c9a227 0%, #2d5bc7 45%, #0f2538 100%);
    opacity: 0.95;
    z-index: 0;
}

.showcase-creator-inner {
    position: relative;
    z-index: 1;
    margin: 2px;
    padding: 16px 16px 14px;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.18), transparent 42%),
        linear-gradient(155deg, #0f2538 0%, #183751 52%, #1e4468 100%);
    color: #e8eef8;
}

.showcase-creator-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.showcase-creator-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    margin-bottom: 0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0f2538;
    background: linear-gradient(145deg, #f5d76e 0%, #c9a227 55%, #a8841a 100%);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.showcase-tag--creator {
    color: #dce8fa;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.showcase-card--creator h3 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 6px;
}

.showcase-card--creator p {
    color: rgba(232, 238, 248, 0.82);
    font-size: 11px;
    -webkit-line-clamp: 3;
}

.showcase-creator-link {
    display: inline-block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #f5d76e !important;
    letter-spacing: 0.02em;
}

.showcase-card--creator:hover .showcase-creator-inner {
    background:
        radial-gradient(circle at top right, rgba(201, 162, 39, 0.24), transparent 45%),
        linear-gradient(155deg, #122d45 0%, #1a4060 52%, #255580 100%);
}

.showcase-card--creator:hover .showcase-creator-glow {
    opacity: 1;
    filter: brightness(1.05);
}

.legal-modal {
    border: 1px solid #d9e4f2;
    border-radius: 12px;
    padding: 16px;
    max-width: 480px;
}

.legal-modal h3 { margin: 0 0 10px; }
.legal-modal p { margin: 0 0 14px; color: #41556e; }
.legal-modal button {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    background: #2d5bc7;
    color: #fff;
    cursor: pointer;
}

.rodape-login {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 38px;
    background: #0f2538;
    border-top: 1px solid rgba(123, 157, 198, 0.25);
    color: #c9d6ea;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    z-index: 50;
}

.rodape-login .links-legais {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rodape-login a {
    color: #dce8fa;
    text-decoration: none;
}

.rodape-login a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    .container-login {
        grid-template-columns: 1fr;
    }
    .login-showcase {
        justify-content: flex-start;
    }
    .showcase-stack {
        width: min(420px, 100%);
    }
    .rodape-login {
        position: static;
        margin-top: 8px;
        flex-direction: column;
        align-items: flex-start;
        font-size: 10px;
    }
    body {
        grid-template-rows: auto;
    }
}
