html,
body {
    height: 100%;
    margin: 0;
}

/* A página ocupa exatamente a altura da janela: conteúdo no meio, footer embaixo */
body.login-page {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0d131a;
    background-image: url("../imagens/login-background.511910a27084.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.login-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vh, 40px) 24px;
}

/* Duas colunas de mesma largura; os cards esticam para a mesma altura */
.login-layout {
    width: 100%;
    max-width: 1060px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.login-panel {
    display: flex;
    min-width: 0;
}

.presentation-card,
.login-box {
    width: 100%;
    border-radius: 24px;
    padding: clamp(24px, 4vh, 40px) 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* ==========================================================================
   Card da apresentação
   ========================================================================== */
.presentation-card {
    background: rgba(245, 246, 248, 0.92);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.brand-area {
    text-align: center;
    margin-bottom: clamp(14px, 2.5vh, 24px);
}

.brand-logo-clean {
    width: clamp(160px, 22vh, 220px);
    max-width: 100%;
    height: auto;
}

.presentation-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a8a;
    text-align: center;
    line-height: 1.4;
    margin-bottom: clamp(16px, 3vh, 28px);
    letter-spacing: 0.03em;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vh, 18px);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: rgba(14, 165, 233, 0.12);
    border-radius: 10px;
    color: #0ea5e9;
    font-size: 1rem;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
    font-weight: 500;
}

/* ==========================================================================
   Card do login
   ========================================================================== */
.login-box {
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.login-heading {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 4px;
}

.login-intro-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
    margin-bottom: clamp(16px, 3vh, 26px);
}

.login-form .form-group {
    margin-bottom: clamp(12px, 2vh, 18px);
}

.login-form label {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.login-form .form-control {
    height: 46px;
    background-color: #f1f5f9 !important;
    border: none;
    border-radius: 14px;
    color: #0f172a !important;
    font-size: 0.95rem;
    padding: 12px 16px;
    font-weight: 500;
}

.login-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.4);
}

.login-options {
    margin-bottom: clamp(14px, 2.5vh, 22px);
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.88rem;
    cursor: pointer;
    margin: 0;
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

.login-submit {
    height: 48px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #0f4c9c 0%, #1e70be 50%, #40c4aa 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.15s ease, filter 0.15s ease;
    box-shadow: 0 4px 15px rgba(15, 76, 156, 0.3);
}

.login-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff;
}

.login-box .alert {
    margin-bottom: 0;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.45);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    padding: 10px 14px;
}

.login-box .alert-danger,
.login-box .alert-error {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(153, 27, 27, 0.52);
}

.login-box .alert ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* Chamada para o prestador conhecer o TecGuincho */
.tecguincho-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(16px, 3vh, 24px);
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.tecguincho-cta:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}
.tecguincho-icon {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    font-size: 1rem;
}
.tecguincho-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}
.tecguincho-text strong {
    font-size: 0.9rem;
    color: #fff;
}
.tecguincho-kicker {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #facc15;
    font-weight: 700;
}
.tecguincho-seta {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Footer: logo/sistema à esquerda, contato à direita
   ========================================================================== */
.login-footer {
    flex: 0 0 auto;
    background: rgba(10, 15, 25, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.login-footer-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-brand img {
    height: 18px;
    width: auto;
    opacity: 0.9;
}

.footer-contato {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
}

.footer-ajuda {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.support-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.support-item:hover {
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-link:hover { color: #40c4aa; }
.email-link:hover { color: #38bdf8; }

/* ==========================================================================
   Tablet e celular: uma coluna, login primeiro (aqui rolar é normal)
   ========================================================================== */
@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 20px;
    }

    .login-form-panel { order: -1; }

    .presentation-card,
    .login-box {
        padding: 28px 22px;
    }

    .brand-logo-clean { width: 160px; }

    .presentation-title { font-size: 0.95rem; }

    .login-footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-brand,
    .footer-contato {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-main { padding: 16px; }
    .benefit-text { font-size: 0.86rem; }
    .footer-ajuda { width: 100%; }
}
