/*
 * © Trinidad Tecnologia Ltda.
 * Este sistema é de propriedade da Trinidad Tecnologia Ltda.
 * Seu uso está autorizado exclusivamente durante a vigência do contrato com o cliente.
 * Desenvolvido por Rafael G. Ferreira e Dari Ricardo da Silva Neto.
 * dari@trinidadtecnologia.com.br.
 */

/* Reset básico */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #f6f8fb;
}

/* Layout split para login */
.login-split-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #005baa 0%, #3eb1e7 100%);
}

.login-split-container {
    display: flex;
    width: 900px;
    max-width: 98vw;
    min-height: 520px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 91, 170, 0.13);
    overflow: hidden;
}

.login-split-left {
    background: #005baa;
    color: #fff;
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
}

.split-logo {
    width: 360px;
    max-width: 98vw;
    min-width: 160px;
    margin-bottom: 32px;
    border-radius: 0;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.login-split-left h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.login-split-left p {
    font-size: 1.1rem;
    color: #e6f0fa;
}

.login-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 32px 24px;
}

.login-card {
    max-width: 340px;
    padding: 32px 24px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,91,170,0.06);
    display: flex;
    flex-direction: column;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #005baa;
    text-align: center;
    margin-bottom: 24px;
}

.login-form .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.login-form label {
    font-size: 0.98rem;
    color: #005baa;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    padding: 12px;
    border: 1px solid #b3cce6;
    border-radius: 6px;
    font-size: 16px;
    background: #f7fbff;
    color: #003366;
    transition: border 0.2s;
    width: 100%;
}

.form-input:focus {
    border-color: #005baa;
    outline: none;
}

/* Corrigir largura dos botões dentro de form-group */
.form-group button {
    width: 100%;
    box-sizing: border-box;
}

/* Garantir largura total dos botões principais */
.btn-submit,
.btn-cert {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
}

/* Botões corrigidos */
.btn-submit,
.btn-cert {
    padding: 12px;
    background-color: #005baa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
    display: block;
}

.btn-cert {
    background: #005baa;
    color: #fff;
    border: none;
    font-weight: 600;
    margin-right: 0;
}

.btn-cert:hover,
.btn-submit:hover {
    background: #003366;
    color: #fff;
    border-color: #003366;
}

/* Painel administrativo */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f6f8fb;
}

.sidebar {
    width: 240px;
    background: #005baa;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 32px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
    min-height: 100vh;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.user-icon {
    width: 56px;
    height: 56px;
    background: #3eb1e7;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.sidebar-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    padding: 16px 28px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-left: 4px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #3eb1e7;
    border-left: 4px solid #fff;
}

.logout-link {
    margin-top: 32px;
    color: #ffe0e0;
}

.dashboard-main {
    flex: 1;
    padding: 48px 32px 48px 24px;
    background: #fff;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 2px 12px rgba(0,91,170,0.06);
}

.dashboard-main h1 {
    color: #005baa;
    font-size: 2rem;
    margin-bottom: 12px;
}

/* Formulário de certificado em 3 colunas */
.form-certificado-3colunas {
    max-width: 1100px;
    margin: 0 0 24px 0;
}
.form-certificado-3colunas .form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 14px;
}
.form-certificado-3colunas .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-certificado-3colunas label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #005baa;
}
.form-certificado-3colunas .form-input {
    font-size: 1.08rem;
    padding: 14px 10px;
    border-radius: 6px;
    border: 1px solid #b3cce6;
    background: #f7fbff;
    color: #003366;
    width: 100%;
}
.form-certificado-3colunas textarea.form-input {
    min-height: 38px;
    resize: vertical;
}

/* Campo nome ocupa linha toda */
.form-certificado-3colunas .form-row .form-group#group-name_aluno {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Responsivo */
@media (max-width: 900px) {
    .form-certificado-3colunas .form-row {
        flex-direction: column;
        gap: 10px;
    }
}
