* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.logo-container {
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-imagem {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    width: auto;
    object-fit: contain;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btn {
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    letter-spacing: 1px;
    width: 100%;
    max-width: 350px;
}

.btn-primary {
    background-color: #000000;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #333333;
    transform: scale(105%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    color: white;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000000;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
    position: relative;
    padding-bottom: 10px;
}

.modal-content h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #000000;
    border-radius: 2px;
}

.modal-content h3 {
    color: #333333;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eaeef2;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s;
    background-color: #f8fafc;
}

input:focus {
    outline: none;
    border-color: #000000;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

input::placeholder {
    color: #aab7c4;
    font-style: italic;
}

.btn-block {
    width: 100%;
    margin: 30px 0 20px;
    background-color: #000000;
    color: white;
}

.btn-block:hover {
    background-color: #333333;
    transform: scale(102%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.modal-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.modal-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-links a:hover {
    color: #333333;
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.show {
    display: block;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ============================================= */
/* NOVAS ADIÇÕES - LOADING E UTILITÁRIOS */
/* ============================================= */

/* Loading container */
.loading-container {
    text-align: center;
    padding: 50px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: #666;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Utilitários de display */
.hidden {
    display: none !important;
}

/* ============================================= */
/* Responsividade (mantida) */
/* ============================================= */
@media (max-width: 768px) {
    .logo-imagem {
        max-height: 200px;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1.1em;
        max-width: 300px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Ajustes para loading no celular */
    .loading-container {
        padding: 30px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-container p {
        font-size: 1em;
    }
}