/* login.css */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Colors */
  --primary: #0a6094;
  --primary-hover: #116397;
  --secondary: #63666A;
  --tertiary: #D1D3D4;
  
  --surface: #ffffff;
  --on-surface: #1e1b18;
  --on-surface-variant: #41474f;
  
  --outline: #717880;
  --outline-variant: #c0c7d0;
  --error: #ba1a1a;

  /* Typography */
  --font-headline: 'Hanken Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shapes */
  --rounded-base: 0.25rem; /* 4px */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
}

.split-screen {
  display: flex;
  min-height: 100vh;
}

.split-image {
  flex: 1;
  background-image: url('/static/img/login-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.split-image::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(10, 96, 148, 0.15); /* primary blue overlay */
}

.split-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px;
  background-color: var(--surface);
  position: relative;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .split-screen {
    flex-direction: column-reverse;
  }
  .split-image {
    min-height: 30vh;
    flex: none;
  }
  .split-form {
    flex: 1;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .split-image {
    display: none;
  }
}

.header {
  margin-bottom: auto;
}

.header img {
  height: 60px;
  object-fit: contain;
}

.login-form-container {
  max-width: 400px;
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin: 0 0 12px 0;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--on-surface-variant);
  margin: 0 0 32px 0;
}

.btn-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: transparent;
  color: var(--on-surface);
  border: 1px solid var(--secondary);
  border-radius: var(--rounded-base);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-microsoft:hover {
  background-color: #f8f9fa;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-microsoft svg {
  width: 20px;
  height: 20px;
}

.btn-dossier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid transparent;
  border-radius: var(--rounded-base);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
}

.btn-dossier:hover {
  background-color: rgba(10, 96, 148, 0.05);
  border-color: rgba(10, 96, 148, 0.15);
}

.btn-dossier svg {
  width: 18px;
  height: 18px;
}

.footer {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.6;
}

.footer p {
  margin: 0;
}

/* Inverted Split Screen for Unauthorized page */
.split-screen.inverted {
  flex-direction: row-reverse;
}

.split-image-unauthorized {
  flex: 1;
  background-image: url('/static/img/imagen_acceso_denegado.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.split-image-unauthorized::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(10, 96, 148, 0.05); /* subtle primary blue overlay */
}

/* Tablet (max-width: 1024px) for unauthorized image */
@media (max-width: 1024px) {
  .split-image-unauthorized {
    min-height: 30vh;
    flex: none;
  }
}

/* Mobile (max-width: 768px) for unauthorized image */
@media (max-width: 768px) {
  .split-image-unauthorized {
    display: none;
  }
}

/* Unauthorized Page styling */
.text-center {
  text-align: center;
}

.error-icon-container {
  margin-bottom: 24px;
  color: var(--error);
  display: flex;
  justify-content: center;
}

.error-icon-container .material-symbols-outlined {
  font-size: 48px;
}

.title-error {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--error);
  margin: 0 0 12px 0;
}

/* Desktop alignment overrides */
@media (min-width: 1025px) {
  .text-center {
    text-align: left;
  }
  .error-icon-container {
    justify-content: flex-start;
  }
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: transparent;
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-base);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
}

.btn-back:hover {
  background-color: #f8f9fa;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-back:hover .icon-back {
  color: var(--primary);
}

.btn-back .material-symbols-outlined {
  font-size: 20px;
  width: 20px;
  height: 20px;
  transition: color 0.2s ease;
}

