:root {
    --cor-primaria: #0071F1;
    --cor-texto-cinza: #737791;
    --cor-bg-clara: #E3FCFF;
    --cor-destaque: #0071F1;
    --cor-verde: #25d366;
}



body{
    font-family: "Rubik", sans-serif!important;
}


.btn, .btn-large, .btn-small, .btn-floating, .btn:focus, .btn-large:focus, .btn-small:focus {
    background-color: var(--cor-primaria) !important;
    color: #fff !important;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transition: background 0.2s;
    text-transform: none;
    font-weight: 500;
    font-size: 16px;
}


.btn:hover, .btn-large:hover, .btn-small:hover, .btn-floating:hover {
    background-color: #005bb5 !important; /* tom mais escuro para hover */
}


.btn-full{
    width: 100%!important;
}



/* NOVOS ESTILOS DE INPUT - SEM ANIMAÇÃO */
/* Remover estilos do Materialize para inputs e usar estilo customizado */
.input-field {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 46px;
    padding-top: 8px;
}

.input-field label {
    color: var(--cor-texto-cinza) !important;
    position: absolute !important;
    top: -24px !important;
    left: 0 !important;
    font-size: 14px !important;
    font-weight: 500;
    margin-bottom: 0;
    display: block;
    transform: none !important;
    pointer-events: auto;
}

.input-field label.active {
    font-size: 14px !important;
    transform: none !important;
    color: var(--cor-texto-cinza) !important;
    top: -24px !important;
}

/* Reset completo dos inputs do Materialize */
input[type=text], 
input[type=password], 
input[type=email], 
input[type=url], 
input[type=time], 
input[type=date], 
input[type=datetime-local], 
input[type=tel], 
input[type=number], 
input[type=search], 
textarea {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: normal !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: 16px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}

/* Foco nos inputs - sem animação de label */
input[type=text]:focus:not([readonly]),
input[type=password]:focus:not([readonly]),
input[type=email]:focus:not([readonly]),
input[type=url]:focus:not([readonly]),
input[type=time]:focus:not([readonly]),
input[type=date]:focus:not([readonly]),
input[type=datetime-local]:focus:not([readonly]),
input[type=tel]:focus:not([readonly]),
input[type=number]:focus:not([readonly]),
input[type=search]:focus:not([readonly]),
textarea:focus:not([readonly]) {
    border: 1px solid var(--cor-primaria) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 241, 0.1) !important;
    outline: none !important;
}

/* Label em foco - NÃO muda de cor */
.input-field input:focus + label,
.input-field textarea:focus + label {
    color: var(--cor-texto-cinza) !important;
}

/* Input desabilitado */
input[type=text]:disabled,
input[type=password]:disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border: 1px solid #e0e0e0 !important;
}

/* Remover validação visual do Materialize */
input.valid, input.invalid {
    border-bottom: none !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
}

/* Placeholder estilo */
::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* Checkbox e radio azul */
[type="checkbox"].filled-in:checked + span:not(.lever):after,
[type="checkbox"]:checked + span:not(.lever):before,
[type="radio"]:checked + span:after,
[type="radio"].with-gap:checked + span:before,
.switch label input[type=checkbox]:checked + .lever {
    border-color: var(--cor-primaria) !important;
    background-color: var(--cor-primaria) !important;
}



/* Centraliza o conteúdo do login */
.login-conteudo {
    max-width: 400px;
    margin: 10vh 0 0 45vw;
}

/* Mensagem de erro */
.card-panel.red {
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
}

.logo-login {
    width: 250px;
    margin: 0 auto;
    display: block;
    margin-bottom: 60px;
}


.login-conteudo h4 {
    font-size: 22px;
    font-weight: 500;
}


.login-conteudo h5 {
    font-size: 14px;
    margin-bottom: 50px;
}

/* Conteúdo real */
.login-real-content {
    opacity: 1;
}

/* PROTEÇÃO ESPECÍFICA PARA RADIO BUTTONS */
/* Garantir que radio buttons não sejam afetados pelos estilos de input */
input[type="radio"] {
    all: unset !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: -9999px !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
}

/* Radio button spans não devem ter estilos de input */
[type="radio"] + span {
    background: none !important;
    border: none !important;
    padding-left: 35px !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}



  .spinner-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .spinner-container {
            text-align: center;
        }

        .spinner {
            width: 80px;
            height: 80px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
            position: relative;
        }

        .spinner::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 32px;
            height: 32px;
            background-image: url('../img/favicon.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            transform: translate(-50%, -50%);
            animation: counter-spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes counter-spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(-360deg); }
        }

        .spinner-container p {
            margin: 0;
            color: #333;
            font-weight: 500;
        }



  .cadastro-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

        .logo-container {
            text-align: center;
            margin-bottom: 30px;
        }

        .logo {
            max-width: 200px;
            height: auto;
        }

        .cadastro-title {
            text-align: center;
            margin: 0 0 8px 0;
            color: #333;
            font-weight: 600;
        }

        .cadastro-subtitle {
            text-align: center;
            color: #666;
            margin: 0 0 30px 0;
            font-size: 14px;
        }

        .alert {
            padding: 12px 16px;
            border-radius: 6px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .alert-error {
            background-color: #fee;
            color: #c53030;
            border: 1px solid #feb2b2;
        }

        .input-field {
            margin-bottom: 20px;
            position: relative;
        }

        .input-field input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }

        .input-field input:focus {
            outline: none;
            border-color: #667eea;
        }

        .input-field label {
            position: absolute;
            left: 16px;
            top: 13px;
            color: #999;
            transition: all 0.2s;
            pointer-events: none;
            background: white;
            padding: 0 4px;
        }

        .input-field input:focus + label,
        .input-field input:not(:placeholder-shown) + label {
            top: -8px;
            left: 12px;
            font-size: 12px;
            color: #667eea;
        }

        .btn-cadastro {
            width: 100%;
            background-color: #667eea;
            color: white;
            border: none;
            padding: 14px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-cadastro:hover {
            background-color: #5a67d8;
        }

        .cadastro-footer {
            text-align: center;
            margin-top: 20px;
        }

        .cadastro-footer a {
            color: #667eea;
            text-decoration: none;
            font-size: 14px;
        }

        .cadastro-footer a:hover {
            text-decoration: underline;
        }

        #toggleSenha{
        position: absolute;
        right: 12px; 
        top: 21px;
        cursor: 
        pointer; 
        color: #999; 
        user-select: none;
        }