/* Scope only to this page via body.auth-page to avoid global side effects */
body.auth-page {
  background-image: url('../images/tech.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #ffffff; 
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
}

/* Wrapper de la sección */
.auth-section {
  width: 100%;
  padding: 20px;
}

/* Card principal */
.auth-card {
  display: flex;
  flex-direction: row;
  background: #2c2c2c;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  min-height: 500px;
}

/* Lado izquierdo: formulario */
.auth-left {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Inputs / labels: colores claros para contraste */
.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-label {
  color: rgba(255,255,255,0.85);
}

/* Botones */
.btn-primary {
  background-color: #3b71c6;
  border-color: #345fb3;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #335ea8;
  border-color: #2b4f94;
}

/* Divider (líneas a los lados de OR) */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 10px;
}

/* Lado derecho: imagen */
.auth-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0px;
}

/* Responsivo: apilar en móvil */
@media (max-width: 992px) {
  .auth-card {
    flex-direction: column;
    min-height: auto;
  }
  .auth-left,
  .auth-right {
    flex: none;
    width: 100%;
    padding: 30px;
  }
  .auth-right {
    order: -1; /* mover imagen arriba del form en móvil */
  }
}
/* Ancho real del sidenav */
#sidenav-main {
  width: 250px;
}

/* Ajusta el grid principal */

.main-content {
  margin-left: 2500px;
}

/* En pantallas pequeñas el sidenav se superpone */
@media (max-width: 1199.98px) {
  .main-content {
    margin-left: 0;
  }
}
.chat-layout-row {
  max-width: calc(100vw - 250px);
  margin-left: 20%
}

 
/* =====================================================
   LAYOUT BASE (APP GENERAL)
===================================================== */

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

.app-layout {
  display: flex;
  min-height: 100vh;
  background: #f8f9fe;
}


/* ======================
   SIDENAV
====================== */

.sidenav {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
}

#sidenav-main {
  width: 250px;
}
/* ======================
   MAIN CONTENT
====================== */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 0px;
}

.navbar-top {
  flex-shrink: 0;
}

.page-content {
  flex: 1;
  padding: 25px;  
}
.chat-layout-row {
  max-width: calc(100vw - 250px);
  margin-left: 20%;
}
/* ======================
   SIDEBAR LINKS
====================== */
.sidebar-link {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: #344767;
  text-decoration: none;
  transition: 0.2s;
  cursor: pointer;
}

.sidebar-link:hover {
  background: #f6f9fc;
  padding-left: 18px;
  text-decoration: none;
}

.sidebar-sub {
  padding-left: 32px;
  font-size: 0.9rem;
}

.sidebar-collapse {
  display: none;
}

.sidebar-collapse.show {
  display: block;
}

.logo-small {
  height: 30px;
  width: auto;
}


/* ======================
   RESPONSIVE GENERAL
====================== */

@media (max-width: 991px) {
  .sidenav {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .main-content {
    margin-left: 0;
  }
}


/* =====================================================
   AUTH PAGE (scope ONLY auth)
===================================================== */

body.auth-page {
  background-image: url('../images/tech.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #ffffff;
  margin: 0;

  min-height: 100vh;

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

  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
}


/* ======================
   AUTH CARD
====================== */

.auth-section {
  width: 100%;
  padding: 20px;
}

.auth-card {
  display: flex;
  flex-direction: row;
  background: #2c2c2c;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  min-height: 500px;
}

.auth-left {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* ======================
   FORM
====================== */

.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-label {
  color: rgba(255,255,255,0.85);
}


/* ======================
   BUTTONS
====================== */

.btn-primary {
  background-color: #3b71c6;
  border-color: #345fb3;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #335ea8;
  border-color: #2b4f94;
}


/* ======================
   DIVIDER
====================== */

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 10px;
}
/* ======================
   AUTH RESPONSIVE
====================== */

@media (max-width: 992px) {
  .auth-card {
    flex-direction: column;
    min-height: auto;
  }

  .auth-left,
  .auth-right {
    flex: none;
    width: 100%;
    padding: 30px;
  }

  .auth-right {
    order: -1;
  }
}
