/* CSS do formulário de registro - Extraído de register.php */

:root {
    --primary-color: #2563eb;
    --secondary-color: #16a34a;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
    --error-color: #dc2626;
    --success-color: #16a34a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    padding: 2rem 0;
}

.register-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1000px;
}

.register-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.register-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Animações para toasts */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Estilo para indicadores de template */
.template-indicator {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-indicator .btn-close {
    font-size: 0.8rem;
    padding: 0.25rem;
}

.register-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.register-content {
    padding: 3rem;
}

.template-selected {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--accent-color);
}

.template-info {
    display: flex;
    align-items: center;
}

.template-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px !important;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
    border-radius: 10px !important;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 10;
    pointer-events: none;
}

.input-group .form-control {
    padding-left: 3rem;
    padding-right: 3rem;
}

.password-toggle {
    width: 40px !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: none;
    color: var(--primary-color);
}

/* Garantir que todos os inputs tenham cantos arredondados */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
    border-radius: 10px !important;
}

.subdomain-preview {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    font-family: monospace;
    color: var(--text-dark);
}

.subdomain-available {
    color: var(--success-color);
    font-weight: 600;
}

.subdomain-taken {
    color: var(--error-color);
    font-weight: 600;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak {
    background: var(--error-color);
}

.strength-medium {
    background: var(--accent-color);
}

.strength-strong {
    background: var(--success-color);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--error-color);
}

.pricing-summary {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.price-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-small {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.included-list {
    list-style: none;
    padding: 0;
}

.included-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.included-list i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.template-required-alert {
    border-left: 4px solid #f59e0b;
    background: #fef3c7;
    border-color: #f59e0b;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .register-content {
        padding: 2rem 1.5rem;
    }

    .template-info {
        flex-direction: column;
        text-align: center;
    }

    .template-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Estilos para checkbox de termos */
.terms-check {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 20px 20px 40px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.terms-check:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.terms-check .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #007bff;
    border-radius: 4px;
}

.terms-check .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.terms-check .form-check-label {
    font-size: 14px;
    line-height: 1.5;
    margin-left: 10px;
    cursor: pointer;
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
}

.terms-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
    text-decoration: none;
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
}

/* Estilos para a modal em tela cheia */
.modal-xl {
    max-width: 95vw;
}

@media (min-width: 992px) {
    .modal-xl .modal-content {
        height: 95vh;
    }
}

/* Melhorar aparência do loading */
#termsModalLoading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Garantir que o loading seja ocultado corretamente */
#termsModalLoading.d-none {
    display: none !important;
}

#termsModalLoading[style*="display: none"] {
    display: none !important;
}

/* Smooth transitions */
.modal-content {
    transition: all 0.3s ease;
}

/* Responsividade para mobile */
@media (max-width: 991px) {
    .modal-fullscreen-lg-down .modal-content {
        height: 100vh;
    }

    .modal-fullscreen-lg-down .modal-body {
        height: calc(100vh - 120px);
    }
}

/* Estilos para a modal em tela cheia */
.modal-xl {
    max-width: 95vw;
}

@media (min-width: 992px) {
    .modal-xl .modal-content {
        height: 95vh;
    }
}

/* Melhorar aparência do loading */
#termsModalLoading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Garantir que o loading seja ocultado corretamente */
#termsModalLoading.d-none {
    display: none !important;
}

#termsModalLoading[style*="display: none"] {
    display: none !important;
}

/* Smooth transitions */
.modal-content {
    transition: all 0.3s ease;
}

#coupon_code {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
/* ==============================
   Resumo dos Termos de Uso
   ============================== */
.terms-summary {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.terms-summary:hover {
    border-color: var(--primary-color);
    background: #f0f6ff;
}

.terms-summary-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.terms-summary-title i {
    color: var(--primary-color);
}

.terms-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.terms-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.35rem 0;
    line-height: 1.4;
}

.terms-summary-list i {
    color: var(--secondary-color);
    margin-top: 2px;
    font-size: 0.85rem;
}

.terms-summary-footer {
    font-size: 0.85rem;
    color: var(--text-light);
}

.terms-summary-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.terms-summary-footer a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}
