/* assets/css/brand.css */
/* ============================================
   BRAND VARIABLES & GLOBAL STYLES - XIONYS
   Preserves all Bootstrap classes while adding custom styling
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  /* Brand Colors */
  --color-primary: #274880; /* Xionys deep blue */
  --color-primary-dark: #1b3563;
  --color-bg-light: #f5f7fb; /* main background (soft gray) */
  --color-surface: #ffffff; /* cards, panels */
  --color-border: #e2e8f0;
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-accent-soft: #eef2f6;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;

  /* Border Radius */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* Override Bootstrap backgrounds with our variables */
body {
  background-color: var(--color-bg-light) !important;
  font-family: var(--font-sans);
}

/* LEFT PANEL CUSTOM STYLES (attached to existing Bootstrap classes) */
.brand-panel-custom {
  background-color: var(--color-primary) !important;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: var(--space-2xl) !important;
}

.brand-content-custom {
  max-width: 400px;
  margin: 0 auto;
}

.brand-logo-custom {
  margin-bottom: var(--space-2xl);
}

.brand-logo-custom img {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1); /* forces logo to white on blue */
}

.brand-title-custom {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: white;
}

.brand-description-custom {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 320px;
  color: white;
}

/* RIGHT PANEL CUSTOM STYLES */
.login-panel-custom {
  background-color: var(--color-surface) !important;
  padding: var(--space-2xl) !important;
}

.form-wrapper-custom {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.welcome-header-custom h2 {
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.welcome-header-custom p {
  color: var(--color-text-secondary);
}

/* Form elements */
.form-group-custom {
  margin-bottom: var(--space-lg);
}

.input-wrapper-custom {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  transition: all 0.2s;
}

.input-wrapper-custom:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(39, 72, 128, 0.1);
}

.input-wrapper-custom input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
  color: var(--color-text-primary);
}

.input-wrapper-custom input::placeholder {
  color: var(--color-text-muted);
}

.input-icon-custom {
  padding-right: var(--space-md);
  color: var(--color-text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
}

/* Forgot password */
.forgot-row-custom {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-xs);
}

.forgot-link-custom {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.forgot-link-custom:hover {
  text-decoration: underline;
}

/* Primary button override */
.btn-primary-custom {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  height: 48px;
  box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
}

/* Secure note */
.secure-note-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin: var(--space-lg) 0 var(--space-xl);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* Demo credentials card */
.demo-card-custom {
  background-color: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.demo-card-custom p {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.demo-row-custom {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.demo-row-custom i {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.demo-row-custom .password-hint {
  color: var(--color-text-secondary);
}

.demo-row-custom .password-hint strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Divider */
.divider-custom {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0 var(--space-md);
  opacity: 1;
}

/* Signup text */
.signup-text-custom {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.signup-link-custom {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: var(--space-xs);
}

.signup-link-custom:hover {
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .brand-panel-custom {
    padding: var(--space-xl) !important;
    text-align: center;
  }

  .brand-description-custom {
    max-width: 100%;
  }

  .brand-logo-custom img {
    margin: 0 auto;
  }

  .login-panel-custom {
    padding: var(--space-xl) !important;
  }

  .head_mobile {
    margin: 2rem auto !important;
    text-align: center;
  }

  .head_mobile img {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .brand-panel-custom {
    padding: var(--space-lg) !important;
  }

  .brand-title-custom {
    font-size: 2rem;
  }

  .login-panel-custom {
    padding: var(--space-lg) !important;
  }
}

/* Preserve Bootstrap utility classes but add our touch */
.auth-wrapper {
  background-color: var(--color-bg-light) !important;
}

.auth-inner {
  background-color: transparent !important;
}
