* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #0b2c5f, #144a9b); */
    background-color: #0c29ab;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right,
            rgba(255,255,255,0.1),
            transparent 30%),
        radial-gradient(circle at bottom left,
            rgba(255,255,255,0.08),
            transparent 30%);
}

.container {
    width: 100%;
    max-width: 550px;
    z-index: 2;
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.logo-area {
    margin-bottom: 25px;
}

.logo {
    max-width: 180px;
    width: 100%;
    object-fit: contain;
}

h1 {
    color: #0b2c5f;
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: 700;
}

.codigo-box {
    background: #f4f7fb;
    border: 1px solid #dce6f5;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 25px;
    word-break: break-word;
}

.codigo-box .label {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

#codigoValidacao {
    font-weight: bold;
    color: #0b2c5f;
    font-size: 16px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #0d6efd;
}

.btn-success {
    background: #26883c;
}

.btn-info {
    background: #dca114;
}

.btn-secondary {
    background: #6c757d;
}

.mensagem {
    margin-bottom: 20px;
    font-size: 15px;
    color: #dc3545;
    font-weight: 500;
}

/* =========================
   DADOS DO ALUNO
========================= */

.aluno-box {

    background: #f4f7fb;

    border: 1px solid #dce6f5;

    border-radius: 14px;

    padding: 20px;

    margin-bottom: 25px;

    text-align: left;

}

.info-item {

    margin-bottom: 16px;

    font-size: 17px;

    color: #333;

    word-break: break-word;

}

.info-item:last-child {

    margin-bottom: 0;

}

.info-label {

    font-weight: bold;

    color: #0b2c5f;

}

/* Modal */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    animation: scaleIn 0.3s ease;
}

.modal-header {
    height: 70px;
    background: #0b2c5f;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.close-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#pdfViewer {
    width: 100%;
    height: calc(100% - 70px);
    border: none;
    display: none;
}

/* Loader */

.loader-container {
    position: absolute;
    inset: 70px 0 0 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loader {
    width: 55px;
    height: 55px;
    border: 5px solid #dce6f5;
    border-top: 5px solid #0b2c5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .modal-content {
        height: 95vh;
    }

}