/* /public_html/css/public_style.css */

/* --- Estilos Globais --- */
html {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #eef2f7;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Estilos do Cartão Principal (Login, Cadastro, etc.) --- */
.card-panel {
    display: flex;
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.login-card-panel {
    max-width: 850px;
    min-height: 480px;
}

.register-card-panel {
    max-width: 1000px;
    min-height: 620px;
}

.form-column {
    flex-basis: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    box-sizing: border-box;
}

.register-form-column {
     flex-basis: 55%;
     align-items: flex-start; /* Alinha o conteúdo ao topo */
     overflow-y: auto;
}


.graphic-column {
    flex-grow: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-graphic { background-image: url('../img/login-painel-grafico.png'); }
.register-graphic { background-image: url('../img/acesso-painel-grafico.png'); }


/* --- Estilos do Contêiner do Formulário --- */
.form-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-sizing: border-box;
}

.form-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.form-title {
    font-size: 20px;
    font-weight: 500;
    color: #1c2e3f;
    margin-top: 0;
    margin-bottom: 25px;
}

.form-title .initials {
    font-weight: 700;
    color: #004A7C;
}

/* --- Estilos dos Grupos de Formulário e Campos --- */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #4a5568;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
    color: #2d3748;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:read-only {
    background-color: #e9ecef; /* Cor de fundo para campos bloqueados */
    cursor: not-allowed;
}


.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #005A9C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.25);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* --- Botões e Links --- */
button[type="submit"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #005A9C;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #003870;
}
button[type="submit"]:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}


.extra-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.extra-links a {
    color: #005A9C;
    text-decoration: none;
    font-weight: 500;
}

.extra-links a:hover {
    text-decoration: underline;
}

/* --- Mensagens de Feedback --- */
.feedback-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    border: 1px solid transparent;
}
.feedback-message.success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.feedback-message.error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.feedback-message.info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }

/* Status da matrícula */
#matricula_status {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}
.status-success { color: #28a745; }
.status-error { color: #dc3545; }
.status-loading { color: #6c757d; }


/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 15px;
    font-size: 12px;
    color: #5a6878;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}
footer p { margin: 5px 0; }

/* --- Responsividade --- */
@media (max-width: 900px) {
    .card-panel { flex-direction: column; min-height: unset; margin-top: 20px; margin-bottom: 20px; max-width: 500px; }
    .form-column { order: 1; overflow-y: visible; }
    .register-form-column { align-items: center; }
    .graphic-column { flex-basis: auto; min-height: 150px; order: 0; border-radius: 12px 12px 0 0; }
    .login-graphic-column { display: none; }
}

@media (max-width: 480px) {
    body { padding: 0; }
    .card-panel { margin-left: 0; margin-right: 0; width: 100%; border-radius: 0; box-shadow: none; }
    .form-column { padding: 25px 20px; }
    .form-title { font-size: 19px; }
    footer { padding: 15px; }
}