/** 
 * Estilos para el login de SICAMAR
 * Extraídos de force.css y adaptados localmente
 */

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* Clases para la estructura del login */
.story-log {
  width: 100%;
  height: 100%;
}

.swipe-up01 {
  padding: 20px;
}

.swipe-up02 {
  height: 100%;
}

.swipe-up04 {
  text-align: center;
  padding-top: 30px;
}

.swipe-up {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* Clases para imágenes y logos */
.sicamar {
  width: 60%;
  margin-bottom: 20px;
}

/* Clases para íconos */
.movi3 {
  margin: 0px 5px 0px 0px;
  width: 20px !important;
}

.movi4 {
  margin: 0px 5px 0px 0px;
  width: 25px !important;
}

/* Estilos para modales */
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 0 solid rgba(0, 0, 0, 0.2);
  border-radius: 10px !important;
  outline: 0;
}

.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 !important;
  color: #000 !important;
  border-bottom: 0 solid #e9ecef;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  color: #000 !important;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

/* Botón de cerrar */
.btn-light-cerrar {
  font-size: 20px !important;
  font-family: Microsoft Sans Serif !important;
  font-weight: 200 !important;
  font-stretch: ultra-expanded !important;
  text-align: center !important;
  line-height: 0 !important;
  color: #888d92 !important;
  border-color: none !important;
  margin: -10px 0px 0px 0px;
  width: 45px !important;
  height: 30px !important;
  border-radius: 0px !important;
  border-top-right-radius: 6px !important;
}

.btn-light-cerrar:hover {
  color: #fff !important;
  background-color: #ef5350 !important;
  border-color: none !important;
}

/* Estilos adicionales para el formulario */
.form-control-lg {
  min-height: calc(1.5em + 1rem + 2px);
  padding: 0.5rem 1rem;
  font-size: 1em !important;
  border-radius: 4px;
  border: 1px solid #cbe2ff !important;
}

/* Estilos para la sección principal */
.vh-100 {
  height: 100vh !important;
}

/* Estilos para la tarjeta de login */
.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Clases adicionales necesarias */
.cerraxmodel {
  margin-top: -24px !important;
  margin-right: -24px !important;
  text-align: right !important;
  float: right !important;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-backdrop {
  z-index: auto !important;
}

/* Estilos para el fondo y cuerpo */
html {
  padding: 0;
  margin: 0;
  height: 99.7%;
  background-size: 100% 100%;
  background: #c7e7ff !important;
  min-height: 0% !important;
  color: #000;
  font-family: "Open Sans", Arial, Helvetica, Sans-serif, Verdana, Tahoma;
}

body {
  padding: 0;
  margin: 0;
  height: 100% !important;
  font-family: "Open Sans", Arial, Helvetica, Sans-serif, Verdana, Tahoma !important;
}

/* Estilos para dispositivos móviles */
@media screen and (max-width: 375px) {
  html {
    padding: 0;
    margin: 0;
    height: 100%;
    background-size: 100% 100%;
    background: #0e65a8 !important;
    color: #000;
    font-family: "Open Sans", Arial, Helvetica, Sans-serif, Verdana, Tahoma;
  }
}

/* Estilos para la clase wipe */
.wipe {
  position: relative;
  overflow: hidden;
}

.story-log .swipe-up01 {
  background: url(https://apil.com.mx/public/img/fondologin16.png) no-repeat !important;
  background-size: 100% 100% !important;
  border-top-right-radius: 10px !important;
  background-position: top !important;
  padding: 70px !important;
  vertical-align: top;
  display: inline-block;
  min-height: 560px;
  flex-grow: 1;
  text-align: left;
  /*border: 1px solid #ddd !important;*/
}

/* AdminPro Dark Theme Login Styles */
:root {
    --primary-color: #0d6efd;
    --dark-bg: #2a3447;
    --card-bg: #1e293b;
    --text-color: #b9c0cf;
    --heading-color: #ffffff;
    --border-color: #313d55;
    --form-bg: #283046;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper .auth-box {
    background-color: var(--card-bg);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

/* Update the modal-bg-img class to ensure it doesn't block interaction */
.auth-wrapper .auth-box .modal-bg-img {
    background-size: cover;
    background-position: center;
    min-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0.15; /* Slightly increased opacity for better visibility */
    pointer-events: none; /* Ensures clicks pass through the background */
    z-index: 0;
    transition: opacity 0.5s ease; /* Smooth transition for background */
}

/* Add a subtle hover effect to make the background more visible on hover */
.auth-box:hover .modal-bg-img {
    opacity: 0.2;
}

/* Custom icon styles for the help button */
.btn-help-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Add z-index to the content container to ensure it's above the background */
.auth-box .p-4 {
    position: relative;
    z-index: 1;
}

/* Make sure form elements are properly interactive */
.form-control, .btn, a {
    position: relative;
    z-index: 2;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo img {
    max-width: 180px;
}

h2, h4 {
    color: var(--heading-color);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: var(--form-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.form-control:focus {
    background-color: var(--form-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.text-primary {
    color: var(--primary-color) !important;
}

.forgot-pass {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-pass:hover {
    color: var(--primary-color);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
    text-align: center;
    margin-top: 2rem;
}

/* Modal styles */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-box {
        width: 95%;
    }
}

/* Enhanced Modal Styles */
.modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.25rem 1.5rem 0.5rem;
}

.modal-title {
    font-size: 1.15rem;
}

.modal-body {
    padding: 1.25rem 1.5rem;
}

.alert-info {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 6px;
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

/* Password toggle button styles */
.input-group .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-color); 
    background-color: var(--form-bg);
    z-index: 0;
}

.input-group .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--heading-color);
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn-outline-secondary {
    border-left: none;
}

.gap-2 {
    gap: 0.75rem !important;
}

/* Custom SweetAlert icon styles */
.no-border {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.swal2-icon {
    margin: 0 auto 0.5em !important;
}

/* Custom positioning for SweetAlert icon */
.swal-icon-position {
    margin-top: 20px !important;
}
