﻿/* ===== Tela de login =====
   REGRA: tudo aqui fica dentro de .auth-split, porque este arquivo
   é carregado no _LoginPartial, que várias telas usam. */
.auth-split {
    --marca: #3eb9d3;
    --marca-escura: #1f7f99;
    --texto: #1f2937;
    --texto-suave: #6b7280;
    --borda: #d1d5db;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #fff;
    font-family: 'Source Sans Pro', sans-serif;
}

/* ---- Lado esquerdo: marca ---- */
.auth-brand {
    background: linear-gradient(135deg, var(--marca) 0%, var(--marca-escura) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 64px;
}

    .auth-brand img {
        width: 120px;
        height: 120px;
        padding: 24px;
        object-fit: contain;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
        margin-bottom: 28px;
    }

    .auth-brand h1 {
        font-size: 36px;
        font-weight: 700;
        margin: 0 0 12px;
    }

    .auth-brand p {
        font-size: 18px;
        opacity: .9;
        max-width: 380px;
        margin: 0 auto; 
    }

/* ---- Lado direito: formulário ---- */
.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

    .auth-form .conteudo {
        width: 100%;
        max-width: 380px;
    }

    .auth-form .logo-mobile {
        display: none;
        width: 56px;
        margin-bottom: 16px;
    }

    .auth-form h2 {
        font-size: 28px;
        font-weight: 700;
        color: var(--texto);
        margin: 0 0 4px;
    }

    .auth-form .subtitulo {
        color: var(--texto-suave);
        margin-bottom: 28px;
    }

    .auth-form .campo {
        margin-bottom: 18px;
    }

        .auth-form .campo label {
            display: block;
            font-weight: 600;
            color: var(--texto);
            margin-bottom: 6px;
        }

    .auth-form .input-icone {
        position: relative;
    }

        .auth-form .input-icone > i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--texto-suave);
        }

    .auth-form .form-control {
        height: 44px;
        border-radius: 8px;
        border: 1px solid var(--borda);
        padding-left: 40px;
        box-shadow: none;
    }

        .auth-form .form-control:focus {
            border-color: var(--marca);
            box-shadow: 0 0 0 3px rgba(62, 185, 211, .25);
        }

    .auth-form .btn-olho {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: 0;
        color: var(--texto-suave);
        padding: 6px;
        cursor: pointer;
    }

    .auth-form #Password {
        padding-right: 40px;
    }

    .auth-form .linha-opcoes {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 22px;
        font-size: 14px;
    }

        .auth-form .linha-opcoes label {
            font-weight: 400;
            margin: 0;
            cursor: pointer;
        }

        .auth-form .linha-opcoes a {
            color: var(--marca-escura);
        }

    .auth-form .btn-entrar {
        width: 100%;
        height: 46px;
        border: 0;
        border-radius: 8px;
        background: var(--marca);
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        transition: background .2s;
    }

        .auth-form .btn-entrar:hover {
            background: var(--marca-escura);
        }

    .auth-form .text-danger {
        font-size: 13px;
        display: block;
        margin-top: 4px;
    }

    .auth-form .validation-summary-errors ul {
        padding-left: 18px;
        margin-bottom: 16px;
    }

    .auth-form .link-voltar {
        display: block;
        text-align: center;
        margin-top: 18px;
        font-size: 14px;
        color: var(--marca-escura);
    }

    .auth-form a.btn-entrar {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

/* ---- Celular ---- */
@media (max-width: 768px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form .logo-mobile {
        display: block;
    }
}
