/* Fondo general */
.login-style-1 {
    background: #FFF !important;
}

/* logo */
.firstlogin-card img{
    width: 150px;
}

/* required */
.fa-circle-exclamation, .fdescription{
 display: none;
}

.obligatorio{
    color: #dc2626;
}
/* Card blanca */
.firstlogin-card {
    width: 50%;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* Logo centrado*/
.firstlogin-card img {
    display: block;
    margin: 0 auto 16px;
}

/* Títulos */
.firstlogin-card h3 {
    text-align: left;
    font-weight: 700;
    margin-bottom: 8px;
}
.col-form-label{
    min-width: 500px;
}

.firstlogin-card p {
    text-align: center;
    color: #003057;
    margin-bottom: 24px;
}

/* Inputs */
.firstlogin-card input[type="text"],
.firstlogin-card input[type="email"],
.firstlogin-card input[type="password"],
.firstlogin-card select {
    width: 100%;
    height: 37px;
    border-radius: 10px;
    border: none;
    background: #f1f1f1;
    padding: 0 14px;
    font-size: 14px;
}

/* Cada campo */
.firstlogin-card .fitem {
    margin-bottom: 18px;
}

/* Labels */
.firstlogin-card .fitem label, .col-form-label {
    font-weight: 600;
    font-size: 14px;
    margin-left: 2%;
    color: #003057;
}


.firstlogin-card .custom-control {
    margin-bottom: 12px;
}

.firstlogin-card .custom-control-label {
    font-size: 14px;
    color: #374151;
}

.firstlogin-card .btn-primary,
.firstlogin-card input[type="submit"] {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    background: #1B4991;
    border: none;
    font-weight: 600;
    font-size: 15px;
}

.firstlogin-card .btn-primary:hover {
    background: #001f42;
}

.firstlogin-card .error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.firstlogin-card .form-control.is-invalid {
    border: 1px solid #dc2626;
    background: #fff5f5;
}

/* SOLO para tu flujo */
.firstlogin-card .mform .fitem {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

/* Label */
.firstlogin-card .mform .fitemtitle {
  width: 100%;
  margin-bottom: 6px;
  font-weight: 600;
  color: #000;
  text-align: left;
}

/* Contenedor del input */
.firstlogin-card .mform .felement {
  width: 100%;
}
 .mform select{
    width: 100% !important;
 }

/* Inputs */
.firstlogin-card .mform input[type="text"],
.firstlogin-card .mform input[type="email"] {
  width: 100%;
  height: 37px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  padding: 10px 12px;
}

.info-terminos{
    font-size: 14px;
    margin-bottom: 5%;
}

.policy-link {
    color: #1B4991;
    font-weight: 600;
    text-decoration: underline;
}

.local-firstloginflow-policy-modal .modal-body {
    padding: 0.75rem;
}

.local-firstloginflow-policy-modal-body {
    width: 100%;
    overflow: hidden;
}

.documents-card .document-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.documents-card .document-item h4 {
    margin-bottom: 10px;
    color: #003057;
}

.documents-card .document-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.documents-card .btn {
    width: auto !important;
    min-width: 180px;
}

.documents-card .btn-secondary {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1B4991;
}

.documents-card .document-empty {
    font-size: 14px;
    color: #6b7280;
}

.firstlogin-user-header {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 16px;
    margin-bottom: 24px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #1B4991;
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    margin: auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

.user-fullname {
    font-size: 22px;
    font-weight: 600;
    color: #1B4991;
    text-align: center;
}
#id_submitbutton{
    background-color: #1B4991 !important;
}
.word-break, .user-username{
    color: #003057;
}
/* responsive  */
@media (max-width: 1500px) {
    .firstlogin-card {
        margin: 5% auto 5% auto;
        padding: 4%;
        width: 55%;
    }
    
    .firstlogin-card img {
        max-width: 120px !important;
        height: auto;
        margin: 0 auto 20px auto;
        display: block;
    }
    
    .firstlogin-card p {
        font-size: 14px;
        line-height: normal;
        text-align: center;
        color: #003057;
    }
    .firstlogin-card .fitem label, .col-form-label, .form-control-static  {      
        font-size: 14px;  
        color: #003057;    
    }

    .container-fluid{
        padding-right: 0% !important;
        padding-left: 0% !important;
    }
    
    /* Asegurar que los elementos del formulario sean responsivos */
    .mform .fitem {
        float: none !important;
        margin-bottom: 15px !important;
    }
    
    .mform .fitem .fitemtitle {
        float: none !important;
        margin-bottom: 5px !important;
        text-align: left !important;
    }
    
    .mform .fitem .felement {
        float: none !important;
        margin-left: 0 !important;
    }
    
    /* Inputs responsivos */
    .mform input[type="text"],
    .mform input[type="email"],
    .mform input[type="tel"],
    .mform textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Botones responsivos */
    .mform .fsubmit {
        text-align: center;
    }
    
    .mform .fsubmit input[type="submit"],
    .mform .fsubmit .btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .user-fullname{
        font-size: 16px;
    }
    .firstlogin-card {
        margin: 10px;
        padding: 15px;
        width: auto;
    }
    
    .firstlogin-card img {
        max-width: 120px !important;
        height: auto;
        margin: 0 auto 20px auto;
        display: block;
    }
    
    .firstlogin-card p {
        font-size: 12px;
        line-height: normal;
        text-align: center;
    }
    .firstlogin-card .fitem label, .col-form-label, .form-control-static  {      
        font-size: 12px;      
    }

    .container-fluid{
        padding-right: 0% !important;
        padding-left: 0% !important;
    }
    
    /* Asegurar que los elementos del formulario sean responsivos */
    .mform{
        padding-right:0px !important;
        padding-left :25px !important;
    }
    .mform .fitem {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px !important;
    }
    
    .mform .fitem .fitemtitle {
        width: 100% !important;
        float: none !important;
        margin-bottom: 5px !important;
        text-align: left !important;
    }
    
    .mform .fitem .felement {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }
    
    /* Inputs responsivos */
    .mform input[type="text"],
    .mform input[type="email"],
    .mform input[type="tel"],
    .mform textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Botones responsivos */
    .mform .fsubmit {
        text-align: center;
    }
    
    .mform .fsubmit input[type="submit"],
    .mform .fsubmit .btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Para pantallas muy pequeñas (teléfonos) */
@media (max-width: 480px) {
    .firstlogin-card {
        margin: 10px;
        padding: 10px;
    }
    
    .firstlogin-card img {
        max-width: 120px !important;
    }
    
    .firstlogin-card h1,
    .firstlogin-card h2,
    .firstlogin-card h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .mform .fitem {
        margin-bottom: 12px !important;
    }
}
