:root {
    --primary-color: #4a90e2;
    --background-color: #f5f7fa;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: url('bg.png') center center/cover fixed;
    background-color: var(--background-color);
    min-height: 100vh;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 1rem;
}

.container {
    width: 95%;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logo {
    display: block;
    margin-bottom: 1.5rem;
    max-width: min(200px, 50%);
    height: auto;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.form-group {
    margin-bottom: 1rem;
    text-align: center; 
}

label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-weight: 600;
}

select, input[type="file"] {
    width: 100%;
    max-width: 400px; 
    margin: 0 auto;
    display: block; 
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: background-color 0.2s;
    max-width: 400px; 
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    background-color: #357abd;
}

.sorteio-section {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sorteio-section:not(.disabled):hover {
    background-color: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sorteio-section:not(.disabled):active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sorteio-section.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.sorteio-section:not(.disabled)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.sorteio-section:not(.disabled):focus::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

.sorteio-section.loading {
    position: relative;
    cursor: wait;
    pointer-events: none;
}

.sorteio-section.loading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sorteio-section {
        transition: none;
    }
    
    .sorteio-section:not(.disabled):hover {
        transform: none;
    }
    
    .sorteio-section.loading::before {
        animation: none;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        width: 100%;
        padding: 0.5rem;
    }
    
    select, input[type="file"], .submit-btn {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

@media print {
    .container {
        width: 100%;
        max-width: none;
    }
    
    .submit-btn, .sorteio-section {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .submit-btn {
        transition: none;
    }
}

@media (prefers-reduced-data: reduce) {
    body {
        background: var(--background-color);
    }
}

.hidden {
    display: none;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.radio-group {
    margin: 1rem 0;
    text-align: center;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-group label {
    margin-right: 1.5rem;
    display: inline;
}

.option-selector {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 10px;
}

.login-title {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
}

#loginBtn {
  display: block;
  margin: 0 auto;
}
