:root {
  --deep-trust-blue: #1d4ed8;
  --futuric-azure: #3b82f6;
  --vivid-neo-mint: #34d399;
  --cloud-base: #ffffff;
  --slate-core: #000000;
  --primary-color: var(--deep-trust-blue);
  --secondary-color: var(--futuric-azure);
  --accent-color: var(--vivid-neo-mint);
  --light-color: var(--cloud-base);
  --dark-color: var(--slate-core);
  --input-bg: var(--cloud-base);
  --text-color: var(--slate-core);
  --placeholder-color: #6c757d;
  --label-color: var(--slate-core);
  --border-radius: 8px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-width: 100vw;
  font-family: 'Inter', Arial, sans-serif;
  background: #f8fafd;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}

.left, .right {
  flex: 1 1 0;
  width: 50%;
  min-width: 0;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}

.left {
  background: #fff;
  justify-content: flex-start;
  align-items: flex-start;
}

.logo {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 24px;
  left: 36px;
  z-index: 2;
}

.left-img {
  margin-top: 120px;
  margin-bottom: 0;
  width: 480px;
  max-width: 90%;
  max-height: 90vh;
  display: block;
  align-self: center;
  object-fit: contain;
}

.right {
  background: var(--primary-color);
  color: var(--light-color);
  justify-content: center;
  align-items: center;
  box-shadow: -4px 0 28px rgba(44,68,176,0.04);
}

.matrix-title {
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-size: clamp(1.05rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
  margin-top: 0;
  text-align: left;
}

.form-group {
  width: 100%;
  margin-bottom: 24px;
  position: relative;
}

.login-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 20px;
}

label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #fff;
  display: block;
  text-align: left;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  background: var(--input-bg);
  color: var(--text-color);
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]::placeholder, input[type="password"]::placeholder {
  color: var(--placeholder-color);
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(55, 211, 155, 0.25);
}

.login-btn {
  margin-top: 8px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-color);
  background: var(--accent-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease-in-out;
}

.login-btn:hover {
  background: var(--secondary-color);
}

.login-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.dev-label {
  font-size: 1rem;
  color: #e8f4fd;
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: .06em;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-25%);
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  color: #6c757d;
  padding: 8px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.password-toggle:hover {
  color: #495057;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

/* RESPONSIVENESS */
@media (max-width: 1100px) {
  .left-img { width: 340px; }
  .logo { left: 18px; top: 18px; }
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    width: 100vw;
    height: 100vh;
  }
  .left, .right {
    width: 100vw;
    min-width: 0;
    height: auto;
  }
  .left {
    align-items: center;
    justify-content: flex-start;
    height: 42vh;
    padding-top: 24px;
  }
  .logo {
    position: static;
    margin: 0 auto 8px auto;
    display: block;
  }
  .left-img {
    margin-top: 60px;
    width: 90vw;
    max-width: 98vw;
    max-height: 38vh;
  }
  .right {
    height: 58vh;
    justify-content: flex-start;
    padding-top: 32px;
    min-width: 0;
    width: 100vw;
    max-width: 100vw;
  }
  .dev-label {
    bottom: 10px;
  }
}

@media (max-width: 650px) {
  .container {
    flex-direction: column;
    min-width: 0;
    width: 100vw;
    height: 100vh;
  }
  .left, .right {
    padding: 0 3vw;
    height: auto;
    min-width: 0;
  }
  .left-img {
    width: 98vw;
    max-width: 99vw;
  }
  .matrix-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  .login-form {
    max-width: 99vw;
  }
  .login-btn {
    width: 90px;
    font-size: 0.92rem;
    padding: 7px 0;
    margin: 0 auto;
    display: block;
  }
  .dev-label {
    bottom: 25px;
    font-size: 0.95rem;
  }
}

@media (max-width: 410px) {
  .right {
    padding: 12px 2vw 16px 2vw;
    min-width: 0;
  }
  .matrix-title { font-size: 1.05rem; }
  .dev-label {
    bottom: 20px;
    font-size: 0.9rem;
  }
  .login-btn {
    width: 80px;
    margin: 0 auto;
  }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background-color: #f8f9fa;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-content {
    padding: 20px;
}

/* Toggle Button Styles */
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

/* Main Content Styles */
.main-content {
    margin-left: 20px;
    padding: 20px;
    margin-top: 60px;
}

/* Sidebar Links */
.sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

.sidebar a:hover {
    color: #0d6efd;
}