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

:root {
  --login-bg: #0a0c10;
  --login-card: #141820;
  --login-border: rgba(255, 255, 255, 0.07);
  --login-orange: #ff8c1a;
  --login-orange-dark: #e86f00;
  --login-text: #eef1f8;
  --login-muted: #8b93a8;
}

* { box-sizing: border-box; }

body.cs16-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: var(--login-bg);
  color: var(--login-text);
  overflow-x: hidden;
}

.cs16-login-wrap {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.cs16-login-hero {
  flex: 1 1 52%;
  position: relative;
  min-height: 320px;
  background: #0d1018 url('../images/cs16/login-hero.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.cs16-login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 12, 16, 0.85) 0%, rgba(10, 12, 16, 0.35) 45%, rgba(255, 140, 26, 0.12) 100%);
  pointer-events: none;
}

.cs16-login-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, #0a0c10 100%);
  pointer-events: none;
}

.cs16-login-hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.cs16-login-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 140, 26, 0.15);
  border: 1px solid rgba(255, 140, 26, 0.4);
  color: var(--login-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cs16-login-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 12px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.cs16-login-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.6;
}

.cs16-login-panel {
  flex: 1 1 48%;
  min-width: 320px;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--login-bg);
}

.cs16-login-box {
  width: 100%;
  max-width: 400px;
}

.cs16-login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.cs16-login-logo img {
  height: 56px;
  filter: drop-shadow(0 4px 16px rgba(255, 140, 26, 0.35));
}

.cs16-login-logo p {
  margin: 10px 0 0;
  color: var(--login-muted);
  font-size: 13px;
}

.cs16-login-card {
  background: var(--login-card);
  border: 1px solid var(--login-border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.cs16-login-card h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--login-text);
}

.cs16-login-card .subtitle {
  color: var(--login-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.cs16-login-alert {
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.35);
  border-left: 4px solid #ff4d4d;
  color: #ffb4b4;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs16-login-field {
  margin-bottom: 18px;
}

.cs16-login-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--login-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.cs16-login-field .input-wrap {
  display: flex;
  align-items: center;
  background: #0f131c;
  border: 1px solid var(--login-border);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cs16-login-field .input-wrap:focus-within {
  border-color: rgba(255, 140, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 140, 26, 0.12);
}

.cs16-login-field .input-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  margin-right: 10px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cs16-login-field .ico-user {
  background-image: url('../images/cs16/icon-user.svg');
}

.cs16-login-field .ico-lock {
  background-image: url('../images/cs16/icon-console.svg');
}

.cs16-login-field input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: var(--login-text) !important;
  padding: 14px 0;
  font-size: 14px;
  box-shadow: none !important;
}

.cs16-login-field input::placeholder {
  color: #5c6478;
}

.cs16-login-forgot {
  text-align: right;
  margin: -6px 0 20px;
}

.cs16-login-forgot a {
  color: var(--login-orange);
  font-size: 13px;
  text-decoration: none;
}

.cs16-login-forgot a:hover {
  color: #ffb04d;
}

.cs16-login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--login-orange) 0%, var(--login-orange-dark) 100%);
  color: #1a1000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 140, 26, 0.35);
  transition: transform 0.15s, filter 0.15s;
}

.cs16-login-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cs16-login-register {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--login-muted);
}

.cs16-login-register a {
  color: var(--login-orange);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.cs16-login-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12px;
  color: #5c6478;
}

.cs16-login-footer a {
  color: var(--login-muted);
  text-decoration: none;
}

@media (max-width: 991px) {
  .cs16-login-wrap {
    flex-direction: column;
  }
  .cs16-login-hero {
    flex: none;
    min-height: 240px;
    padding: 28px 24px;
  }
  .cs16-login-hero::after {
    background: linear-gradient(to bottom, transparent 40%, #0a0c10 100%);
  }
  .cs16-login-panel {
    max-width: 100%;
    flex: 1;
  }
}
