﻿/* FORÇA CHECKBOX APARECER */
input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    display: inline-block !important;
    opacity: 1 !important;
    position: relative !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.d-flex {
    flex-wrap: wrap;
}

/* RESET BÁSICO */
* {
    box-sizing: border-box;
}

/* LAYOUT COM SIDEBAR */
.layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    min-width: 250px;
    background: #2c2c2c;
    color: white;
}

/* CONTEÚDO DA DIREITA */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    width: 100%;
}

/* CONTAINER DO LOGIN */
.login-container {
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD */
.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* TITULOS */
.title {
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: gray;
    margin-bottom: 20px;
}

/* FORM */
.form-group {
    margin-bottom: 15px;
    width: 100%;
}

/* INPUT WRAPPER */
.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
}

    .input-wrapper i {
        margin-right: 10px;
        color: #6c63ff;
    }

.input {
    border: none;
    outline: none;
    width: 100%;
    min-width: 0; /* evita overflow */
}

/* LINHA (REMEMBER + LINK) */
.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

/* REMEMBER ME */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex: 1 1 auto; /* 👈 permite encolher */
    min-width: 0; /* 👈 evita overflow */
}
    .remember-me input {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

/* LINK */
.link {
    color: #6c63ff;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0; /* 👈 não deixa esmagar */
    white-space: nowrap;
}

/* BOTÃO */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* ERRO */
.error-box {
    background: #ffe5e5;
    color: #cc0000;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

/* REGISTER */
.register {
    text-align: center;
    margin-top: 15px;
}

    .register a {
        color: #6c63ff;
        cursor: pointer;
        margin-left: 5px;
    }

/* SPINNER */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-top: 3px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

