/* --- GLOBAL RESET --- */
:root {
  --bg-dark: #020617; /* Deepest Blue */
  --bg-panel: #0f172a; /* Panel Color */
  --primary: #06b6d4; /* Cyan */
  --primary-glow: rgba(6, 182, 212, 0.5);
  --accent: #6366f1; /* Indigo */
  --text-white: #f8fafc;
  --text-gray: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(15, 23, 42, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  height: 100vh;
  overflow: hidden; /* No Scrollbars */
}

.main-container {
  display: flex;
  height: 100%;
  width: 100%;
}

/* --- LEFT SIDE: VISUALS --- */
.visual-panel {
  flex: 1.2;
  position: relative;
  background: url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?q=80&w=2069&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  overflow: hidden;
}

/* Dark Gradient Overlay */
.visual-panel .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.3),
    rgba(2, 6, 23, 0.95)
  );
}

.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: slideUp 0.8s ease-out;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

.visual-panel h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.visual-panel p {
  color: var(--text-gray);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 90%;
}

.feature-pills {
  display: flex;
  gap: 15px;
}
.feature-pills span {
  font-size: 13px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-pills i {
  color: var(--primary);
}

/* --- RIGHT SIDE: FORM --- */
.form-panel {
  flex: 1;
  background: var(--bg-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  /* Subtle Background Pattern */
  background-image: radial-gradient(
    at 100% 0%,
    rgba(99, 102, 241, 0.15) 0px,
    transparent 50%
  );
}

.back-link {
  position: absolute;
  top: 40px;
  right: 40px;
  color: var(--text-gray);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.back-link:hover {
  color: var(--primary);
}

/* --- LOGIN CARD --- */
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.4); /* Glass Effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-out;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  border-radius: 10px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
}
.logo-header span {
  color: var(--primary);
}

.login-subtitle {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 30px;
}

/* INPUTS */
.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-group label i {
  color: var(--primary);
  margin-right: 5px;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}
.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
  background: rgba(15, 23, 42, 0.9);
}
.input-group input::placeholder {
  color: #475569;
}

/* ACTIONS */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 13px;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  cursor: pointer;
}
.remember-me input {
  accent-color: var(--primary);
}
.forgot-pass {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.forgot-pass:hover {
  text-decoration: underline;
}

/* BUTTON */
.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px var(--primary-glow);
}
.btn-login:active {
  transform: scale(0.98);
}

/* ERROR MSG */
.error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 20px;
  text-align: center;
  display: none;
}

/* FOOTER */
.card-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
}
.card-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.card-footer a:hover {
  text-decoration: underline;
}

.copyright {
  position: absolute;
  bottom: 20px;
  color: #475569;
  font-size: 12px;
  text-align: center;
  width: 100%;
}

/* --- ANIMATIONS --- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .visual-panel {
    display: none;
  } /* Hide image on mobile */
  .form-panel {
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
  }
  .login-card {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .back-link {
    top: 20px;
    right: 20px;
  }
  .copyright {
    position: relative;
    margin-top: 40px;
  }
}
