/* Nuevos estilos personalizados */

:root {
    /* Reemplazamos el color primary con nuestro nuevo color #E25E2D */
    --color-primary: #E25E2D;
    --color-primary-hover: #c64d20;
    --color-primary-light: rgba(226, 94, 45, 0.15);
    /* Nuevo color de fondo */
    --color-background: #F7E1D9;
}

/* Estilos globales */
body {
    background-color: var(--color-background);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Fondo de toda la página */
#layoutAuthentication {
    min-height: 100vh;
    background-color: var(--color-background);
}

#layoutAuthentication_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 30px 15px;
}
  
/* Redefinimos los colores principales */
.bg-primary, .btn-primary {
    background-color: var(--color-primary);
}
  
.text-primary {
    color: var(--color-primary);
}
  
.btn-primary {
    border-color: var(--color-primary);
}
  
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}
  
.btn-secondary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
  
.btn-secondary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, 
.title, .title-info h3, .title-info h4 {
    color: var(--color-primary);
}

.form-control {
    border: 1px solid var(--color-primary);
    background-color: #fff;
    padding: 12px 20px;
    height: 48px;
    font-size: 16px;
    color: #333;
    width: 100%;
    border-radius: 0;
    border-top-left-radius: 17px;
    border-bottom-right-radius: 17px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E25E2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    border-radius: 0;
    border-top-left-radius: 17px;
    border-bottom-right-radius: 17px;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(226, 94, 45, 0.2);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}
  
/* Transparencia en las tarjetas - Ajustado para coincidir con el diseño */
.card, .bg-white.card, .card-form {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 15px;
    box-shadow: none;
    padding: 30px;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

h1, .card-body h1, .ENCUESTA {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    text-align: center;
}

.text-center {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
}

.text-center p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.5;
    font-size: 15px;
}

/* Ajuste para el contenedor principal */
.wrap-small {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.card-body {
    color: #333;
    padding: 0;
}

.form-check {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
  
/* Estilo para elementos seleccionados */
::selection {
    background-color: var(--color-primary);
    color: white;
}
  
/* Estilo para el botón principal usando el SVG especial */
.btn, .btn-lg, .btn-secondary, .btn-primary {
    background-color: var(--color-primary);
    border: none;
    color: white;
    font-size: 20px;
    font-weight: normal;
    padding: 10px 30px;
    text-align: center;
    margin: 25px auto 0;
    display: block;
    width: auto;
    min-width: 200px;
    border-radius: 0;
    border-top-left-radius: 17px;
    border-bottom-right-radius: 17px;
    transition: all 0.3s ease;
}

.btn:hover, .btn-lg:hover, .btn-secondary:hover, .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none !important;
}

.btn a, .btn-primary a, .btn-secondary a {
    color: white !important;
    text-decoration: none !important;
}

.btn a:hover, .btn-primary a:hover, .btn-secondary a:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Ajustes adicionales para los botones de países */
.btn-country {
    display: block;
    margin-bottom: 15px;
}

/* Encabezado centrado de Encuesta */
.text-center h1,
.card-body h1,
.card-body .ENCUESTA {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}

/* Texto descriptivo centrado y con márgenes */
.card-body p {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustes para la sección de preguntas */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label.title {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 16px;
}

/* Ajuste para el logo */
.logo-login {
    text-align: center;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-login img {
    max-width: 180px;
    height: auto;
}

.form-check-item {
    margin-right: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-primary);
    appearance: none;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    position: relative;
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-label {
    font-size: 15px;
    cursor: pointer;
}

/* Mensaje de campo obligatorio */
.text-danger {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}


/* Elementos decorativos */
.decorative-element {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.orange-shape-top-right {
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: url('../img/orangeShape.png') no-repeat;
    background-size: contain;
}

.orange-shape-bottom-right {
    bottom: 5%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: url('../img/orangeShape.png') no-repeat;
    transform: rotate(90deg);
    background-size: contain;
}

.orange-shape-middle-left {
    top: 40%;
    left: 0;
    width: 100px;
    height: 100px;
    background: url('../img/orangeShape.png') no-repeat;
    transform: rotate(-90deg);
    background-size: contain;
}

.bg-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.pink-shape-top-left {
    top: 5%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: url('../img/pinkShape.png') no-repeat;
    background-size: contain;
}

.pink-shape-bottom-left {
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: url('../img/pinkShape.png') no-repeat;
    transform: rotate(-90deg);
    background-size: contain;
}

.pink-shape-middle-right {
    top: 50%;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('../img/pinkShape.png') no-repeat;
    transform: rotate(180deg);
    background-size: contain;
}

@media (max-width: 768px) {
    .decorative-element {
        width: 80px !important;
        height: 80px !important;
    }
}

#layoutAuthentication_content {
    position: relative;
    z-index: 1;
}

.content-container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.pattern-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('../img/pinkShape.png'),
        url('../img/orangeShape.png');
    background-repeat: repeat-y;
    background-size: 80px, 80px;
    background-position: 
        calc(100% - 20px) 500px,
        20px 800px;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 992px) {
    .container {
        max-width: 90%;
    }
    
    .wrap-small {
        max-width: 500px;
    }
    
    .card, .bg-white.card, .card-form {
        padding: 25px;
    }
    
    .form-control {
        font-size: 15px;
        padding: 10px 15px;
        height: 45px;
    }
    
    .btn, .btn-lg, .btn-secondary, .btn-primary {
        min-width: 180px;
        font-size: 18px;
    border-radius: 0;
    border-top-left-radius: 17px;
    border-bottom-right-radius: 17px;
    
    transition: all 0.3s ease;
    }
}

/* Smartphones */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .logo-login img {
        max-width: 150px;
    }
    
    .text-center p {
        font-size: 14px;
    }
    
    .card, .bg-white.card, .card-form {
        padding: 20px 15px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 8px 12px;
        height: 42px;
    }
    
    .form-group label.title {
        font-size: 15px;
    }
    
    .btn, .btn-lg, .btn-secondary, .btn-primary {
        min-width: 150px;
        font-size: 16px;
        padding: 10px 20px;
    }
    
    h1, .card-body h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .form-check {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-check-item {
        margin-right: 0;
        margin-bottom: 8px;
    }
}