/* =========================================================================
   PIDPEN LMS - CLEAN VIOLET DESIGN SYSTEM
   Exact Hex Color Specifications & PIDPEN Brand Theme
   ========================================================================= */

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

:root {
  /* Clean Violet Specified Color Palette */
  --bg-light: #F8F7FB;             /* Page Background */
  --card-bg: #FFFFFF;              /* Card Background */
  --text-main: #1E1B2E;            /* Primary Text */
  --text-muted: #6B6580;           /* Muted Text */
  --text-subtle: #8E88a0;          /* Subtitle Text */
  --border-light: #E4DFF0;         /* Border Color */
  
  --btn-bg: #9B3DD0;               /* Button Background */
  --btn-hover: #7E2FB0;            /* Button Hover */
  --accent-violet: #9B3DD0;        /* Accent Violet */
  --purple-glow: rgba(155, 61, 208, 0.18);

  /* Card Ambient Shadow */
  --shadow-card: 0 16px 40px -12px rgba(155, 61, 208, 0.09), 0 4px 14px rgba(30, 27, 46, 0.03);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #F8F7FB;
}

::-webkit-scrollbar-thumb {
  background: #D8D2E6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--btn-bg);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-light);
  color: var(--text-main);
  overflow-x: hidden;
}

/* =========================================================================
   TOP-LEFT BRAND LOGO HEADER
   ========================================================================= */
.top-logo-bar {
  position: absolute;
  top: 0;
  left: 0;
  padding: 24px 36px;
  z-index: 50;
  display: flex;
  align-items: center;
}

.top-logo-img {
  height: 58px; /* Slightly larger logo height as requested */
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.top-logo-img:hover {
  transform: scale(1.04);
}

/* =========================================================================
   LOGIN SCREEN CONTAINER & CARD (Clean Violet Reference)
   ========================================================================= */
.login-screen-wrapper {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-light);
  position: relative;
}

.login-card-reference {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 440px;
  padding: 44px 38px 40px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card-reference:hover {
  box-shadow: 0 20px 48px -12px rgba(155, 61, 208, 0.14), 0 6px 16px rgba(30, 27, 46, 0.04);
}

/* Login Card Headings */
.login-ref-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-ref-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.login-ref-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Form Controls */
.login-form-group {
  margin-bottom: 18px;
  text-align: left;
}

.login-ref-input {
  width: 100%;
  padding: 13px 18px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-ref-input::placeholder {
  color: #9D97B0;
}

/* Selected Input Field Focus State: Clean Violet Glow */
.login-ref-input:focus {
  border-color: var(--btn-bg);
  background-color: #FAF8fc;
  box-shadow: 0 0 0 4px var(--purple-glow);
}

/* Forgot Password Link */
.forgot-password-wrapper {
  text-align: right;
  margin-bottom: 22px;
}

.forgot-password-link {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--btn-bg);
  text-decoration: underline;
}

/* Clean Violet Button Specifications */
.btn-login-pidpen {
  width: 100%;
  padding: 13px 20px;
  background: var(--btn-bg);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px -2px rgba(155, 61, 208, 0.3);
}

.btn-login-pidpen:hover {
  background: var(--btn-hover);
  box-shadow: 0 8px 22px -2px rgba(126, 47, 176, 0.45);
  transform: translateY(-1px);
}

/* Error Message Banner */
.login-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  margin-bottom: 16px;
  text-align: left;
}

/* Legacy & Shared UI Elements */
.navbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.btn-cyber-outline {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-cyber-outline:hover {
  border-color: var(--btn-bg);
  color: var(--btn-bg);
}
