/**
 * Cadastro Sucesso Modal Styles
 * Modal customizado para exibir mensagem de sucesso após cadastro
 * Baseado no design do Figma e estrutura dos outros modais
 */

/* Backdrop */
.cadastro-sucesso-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cadastro-sucesso-modal-backdrop.active {
    opacity: 1;
}

/* Modal */
.cadastro-sucesso-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(255, 121, 89, 1) 0%, rgba(255, 255, 255, 1) 60%);
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* Garante que todos os elementos dentro do modal usem Poppins */
.cadastro-sucesso-modal * {
    font-family: 'Poppins', sans-serif !important;
}

.cadastro-sucesso-modal-backdrop.active .cadastro-sucesso-modal {
    transform: scale(1);
}

/* Close Button */
.cadastro-sucesso-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: color 0.2s ease;
    z-index: 1;
    width: 40px;
    height: 40px;
}

.cadastro-sucesso-modal-close:hover {
    color: #F5F5F5;
}

.cadastro-sucesso-modal-close svg {
    width: 100%;
    height: 100%;
}

/* Header */
.cadastro-sucesso-modal-header {
    padding: 0.8em 1em 0;
    text-align: center;
}

.sucesso-icon {
    margin: 0 auto 1em;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white !important;
    border-radius: 50%;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.1);
}

.sucesso-icon svg {
    width: 100%;
    height: 100%;
}

.cadastro-sucesso-modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0%;
    color: #000000;
    margin: 0;
}

.cadastro-sucesso-modal-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    margin: 0;
}

/* Body */
.cadastro-sucesso-modal-body {
    padding: 1em 1.6em 1.25em;
    text-align: center;
}

/* Acessar Button */
.btn-acessar {
    width: auto;
    min-width: 120px;
    height: 48px;
    padding: 0 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #000000;
    background-color: #FFFFFF;
    border: 2px solid #e8e8e8;
    border-radius: 40px;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-acessar:hover {
    background-color: #F5F5F5;
    border-color: #e8e8e8;
}

.btn-acessar:active,
.btn-acessar:focus {
    background-color: #F5F5F5 !important;
    border-color: #e8e8e8 !important;
    outline: none;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
    transform: scale(0.98);
}

/* Responsive */

/* Telas médias (14/15 polegadas - 1366px a 1600px) */
@media (min-width: 1366px) and (max-width: 1600px) {
    .cadastro-sucesso-modal {
        max-width: 460px;
        max-height: 98vh;
    }

    .cadastro-sucesso-modal-header {
        padding: 32px 32px 16px;
    }

    .cadastro-sucesso-modal-body {
        padding: 0 32px 32px;
    }

    .cadastro-sucesso-modal-title {
        font-size: 22px;
    }
}

/* Tablets (768px - 600px) */
@media (max-width: 768px) {
    .cadastro-sucesso-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .cadastro-sucesso-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
    }

    .cadastro-sucesso-modal-header {
        padding: 32px 24px 16px;
    }

    .cadastro-sucesso-modal-body {
        padding: 0 24px 32px;
    }

    .cadastro-sucesso-modal-title {
        font-size: 22px;
    }
}

/* Smartphones (480px - 360px) */
@media (max-width: 480px) {
    .cadastro-sucesso-modal-header {
        padding: 28px 20px 12px;
    }

    .cadastro-sucesso-modal-body {
        padding: 0 20px 28px;
    }

    .cadastro-sucesso-modal-title {
        font-size: 20px;
    }

    .sucesso-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .btn-acessar {
        height: 52px;
        font-size: 15px;
    }
}

/* Smartphones pequenos (360px e abaixo) */
@media (max-width: 360px) {
    .cadastro-sucesso-modal-header {
        padding: 24px 16px 12px;
    }

    .cadastro-sucesso-modal-body {
        padding: 0 16px 24px;
    }

    .cadastro-sucesso-modal-title {
        font-size: 18px;
    }

    .btn-acessar {
        height: 48px;
        font-size: 14px;
    }
}

