@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(10, 213, 150, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(18, 32, 27, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #e5e6e5 0%, #ffffff 50%, #e5e6e5 100%);
    color: #070808;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: 
        linear-gradient(135deg, rgba(10, 213, 150, 0.02) 0%, transparent 50%),
        #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 
        0 4px 20px rgba(18, 32, 27, 0.1),
        0 0 0 1px rgba(10, 213, 150, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    border: 2px solid #0ad596;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #12201b, #0ad596, #12201b);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 250px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo h1 {
    color: #12201b;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.logo p {
    color: #666666;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.logo .subtitle {
    color: #0ad596;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: #070808;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.25px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #070808;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #666666;
}

.form-input:focus {
    border-color: #0ad596;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 213, 150, 0.1);
}

.form-input.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    display: none;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    display: none;
    animation: slideDown 0.3s ease;
}

.success-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0ad596 0%, #08b885 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 213, 150, 0.3);
    background: linear-gradient(135deg, #08b885 0%, #07a075 100%);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled::before {
    display: none;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 16px;
}

.loading.show {
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 213, 150, 0.3);
    border-top: 2px solid #0ad596;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saved-data {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    display: none;
}

.saved-data.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.saved-data h3 {
    color: #28a745;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.saved-data p {
    color: #333333;
    font-size: 14px;
    font-family: 'Montserrat', monospace;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #070808;
    position: relative;
    padding-left: 30px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #0ad596;
    background-color: rgba(10, 213, 150, 0.1);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #0ad596;
    border-color: #0ad596;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    flex: 1;
    margin-left: 8px;
}

.termos-link {
    color: #0ad596;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.termos-link:hover {
    border-bottom-color: #0ad596;
    text-decoration: none;
}

#termos-error {
    margin-top: 8px;
    margin-left: 30px;
}

/* Destaque visual para erro nos termos */
.checkbox-group.error-highlight {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Rate Limit Info */
.rate-limit-info {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    text-align: center;
}

.rate-limit-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 500;
}

.rate-limit-icon {
    font-size: 16px;
}

.rate-limit-info.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.rate-limit-info.warning .rate-limit-text {
    color: #ffc107;
}

.rate-limit-info.danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

.rate-limit-info.danger .rate-limit-text {
    color: #dc3545;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px 0 0 0;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.footer p {
    font-size: 12px;
    color: #666666;
    margin: 0;
}

.footer a {
    color: #0ad596;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #08b885;
    text-decoration: underline;
}

.footer-logo {
    height: 14px;
    width: auto;
    vertical-align: middle;
    margin-left: 4px;
    transition: opacity 0.3s ease;
}

.footer a:hover .footer-logo {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .checkbox-text {
        font-size: 13px;
    }
}
