/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #023859;
    --primary-hover: #01283d;
    --primary-light: #f0f7fb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-section: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: auto 0;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header com logos */
.header {
    background-color: var(--primary-color);
    padding: 28px 35px;
    text-align: center;
}

/* Linha das logos com logo1 mais larga */
.header-logos {
    display: grid;
    grid-template-columns: 3fr auto 1fr; /* logo1 ocupa mais espaço */
    align-items: center;
    justify-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    height: 100%;
    width: auto;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.logo-divider {
    width: 1.5px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.4);
}

/* Ajustes de tamanho */
#logo1,
#logo2 {
    max-height: 45px;
    width: auto;
}

/* Conteúdo */
.content {
    padding: 30px 35px 20px 35px;
}

.greeting {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.3;
}

.greeting .highlight {
    color: var(--primary-color);
}

/* Info Box */
.info-box {
    background: var(--bg-section);
    border-left: 4px solid var(--primary-color);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 0;
    border: 1px solid var(--border-color);
}

.info-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: var(--text-primary);
}

/* Form */
.form-group {
    margin-bottom: 0;
    padding: 0 35px 35px 35px;
}

.section-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.checkbox-container:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateX(4px);
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    min-width: 24px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    content: "✓";
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.channel-info {
    flex: 1;
}

.channel-info strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.channel-info small {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    padding: 40px 35px;
    border-radius: 0;
    margin-bottom: 0;
    animation: slideUp 0.4s ease-out;
    border: none;
}

.alert-success {
    background: #ecfdf5;
    text-align: center;
}

.alert-error {
    background: #fef2f2;
}

.success-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.alert h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.alert p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.alert p:last-child {
    margin-bottom: 0;
}

.contact-info {
    font-size: 14px !important;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Error Messages */
.error-text {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 24px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 3px solid var(--error-color);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(2, 56, 89, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2, 56, 89, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-primary);
}

.btn-helper-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

footer p {
    margin-bottom: 8px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    margin: 0 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-social img {
    width: 24px;
    height: 24px;
}


/* Responsive */
@media (max-width: 640px) {
    body {
        padding: 15px 10px;
    }

    .card {
        border-radius: 8px;
    }

    .header {
        padding: 20px 20px;
    }

    .header-logos {
        grid-template-columns: 3fr auto 1fr;
        gap: 12px;
    }


    .logo-container img {
        max-height: 50px;
    }

    .content {
        padding: 20px 20px 15px 20px;
    }

    .greeting {
        font-size: 18px;
    }

    .form-group {
        padding: 20px 20px 25px 20px;
    }

    .checkbox-container {
        padding: 14px 15px;
    }

    .channel-info strong {
        font-size: 15px;
    }

    .channel-info small {
        font-size: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .alert {
        padding: 30px 25px;
    }

    .alert h2 {
        font-size: 20px;
    }

    .success-icon,
    .error-icon {
        font-size: 40px;
    }

    .info-box {
        padding: 15px;
    }
	
	#logo1,
    #logo2 {
        max-height: 32px;
    }
}

@media (max-width: 400px) {
    .greeting {
        font-size: 17px;
    }

    .logo-container img {
        max-width: 150px;
    }
}