:root {
    --primary: #031e3e;
    --secondary: #09bbdd;
    --accent: #fabd04;

    --background: #ffffff;
    --surface: #F9FAFB;

    --text: #031e3e;

    --error: #C81E1E;
    --success: #046C4E;
    --warning: #9F580A;
}
.bg-primary {
    background-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.text-secondary {
    color: var(--secondary);
}

.bg-accent {
    background-color: var(--accent);
}

.text-accent {
    color: var(--accent);
}

.bg-surface {
    background-color: var(--surface);
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    color: white;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease,
                color 0.15s ease;
}

.sidebar-link:hover {
    background-color: #0e234e;
    color: var(--accent);
}



.sidebar-link-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    color: white;
}

.sidebar-link:hover .sidebar-link-icon {
    color: var(--accent);
}


/* ==========================================
   SUB-OPÇÕES DA SIDEBAR
   ========================================== */

.sidebar-sublink {
    display: block;
    padding: 0.45rem 0.75rem;
    color: white;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.sidebar-sublink:hover {
    background-color: #f3f4f6;
    color: var(--accent);
}


/* ==========================================
   SEPARADOR DA SIDEBAR
   ========================================== */

.sidebar-section {
    margin: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

/* ==========================================
   LOGIN
   ========================================== */

.login-section {
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}


.login-container {
    width: 100%;
    max-width: 28rem;
}


/* Logotipo */

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}


.login-logo-image {
    width: auto;
    height: 4rem;
    object-fit: contain;
}


/* Caixa do formulário */

.login-card {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;

    box-shadow:
        0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
}


.login-card-content {
    padding: 1.5rem;
}


@media (min-width: 640px) {

    .login-card-content {
        padding: 2rem;
    }

}


/* Título */

.login-title {
    margin-bottom: 0.5rem;

    color: var(--primary);

    font-size: 1.5rem;
    line-height: 2rem;

    font-weight: 700;

    text-align: center;
}


.login-subtitle {
    margin-bottom: 1.5rem;

    color: #6b7280;

    font-size: 0.875rem;

    text-align: center;
}


/* Formulário */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


.login-label {
    display: block;

    margin-bottom: 0.5rem;

    color: var(--primary);

    font-size: 0.875rem;
    font-weight: 500;
}


.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {

    display: block;

    width: 100%;

    padding: 0.625rem 0.75rem;

    color: var(--primary);

    background-color: #f9fafb;

    border: 1px solid #d1d5db;

    border-radius: 0.5rem;

    font-size: 0.875rem;

    box-sizing: border-box;
}


.login-form input:focus {

    outline: none;

    border-color: var(--secondary);

    box-shadow:
        0 0 0 3px rgb(9 187 221 / 0.15);
}


/* Recuperação de password */

.login-options {
    display: flex;
    justify-content: flex-end;
}


.login-forgot {

    color: var(--primary);

    font-size: 0.875rem;
    font-weight: 500;

    text-decoration: none;
}


.login-forgot:hover {
    text-decoration: underline;
}


/* Botão */

.login-button {

    width: 100%;

    padding: 0.625rem 1.25rem;

    color: #ffffff;

    background-color: var(--primary);

    border: none;

    border-radius: 0.5rem;

    font-size: 0.875rem;
    font-weight: 500;

    text-align: center;

    cursor: pointer;

    transition: background-color 0.15s ease;
}


.login-button:hover {
    background-color: #062d5a;
}


.login-button:focus {

    outline: none;

    box-shadow:
        0 0 0 4px rgb(3 30 62 / 0.2);
}


/* Pedir acesso */

.login-register {

    margin-top: 1rem;

    color: #6b7280;

    font-size: 0.875rem;

    text-align: center;
}


.login-register-link {

    color: var(--primary);

    font-weight: 500;

    text-decoration: none;
}


.login-register-link:hover {
    text-decoration: underline;
}


/* Erros */

.login-field-error {

    margin-top: 0.375rem;

    color: var(--error);

    font-size: 0.875rem;
}