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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF6B2B;
  --primary-hover: #E55A1F;
  --primary-light: rgba(255, 107, 43, 0.1);
  --bg-dark: #0f111a;
  --bg-panel: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --input-bg: #f8fafc;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  background: var(--bg-dark);
  overflow: hidden;
  color: var(--text-dark);
}

/* --- SPLIT LAYOUT --- */
.login-container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* --- LEFT PANEL (Image & Branding) --- */
.login-left {
  flex: 1.2;
  position: relative;
  background-image: url('../img/bengkel_bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding: 60px;
  justify-content: space-between;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 17, 26, 0.9) 0%, rgba(15, 17, 26, 0.4) 100%);
  z-index: 1;
}

.brand-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 43, 0.4));
}

.brand-text strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.brand-text span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.glass-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
}

.glass-card h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.glass-card h1 span {
  color: var(--primary);
}
.glass-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 107, 43, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* --- RIGHT PANEL (Form) --- */
.login-right {
  flex: 0.8;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
}

.login-form-container {
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
  margin-bottom: 40px;
}
.login-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.login-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  transition: color 0.3s ease;
}
.form-control {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light);
}
.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(255, 107, 43, 0.3);
}
.btn-login:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 107, 43, 0.4);
}
.btn-login:active {
  transform: translateY(0);
}

.login-error {
  background: #FEF2F2;
  border-left: 4px solid #EF4444;
  color: #991B1B;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.5s ease-in-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .login-container { flex-direction: column; }
  .login-left { display: none; } /* Hide left panel on small screens */
  .login-right { flex: 1; padding: 20px; }
  .login-form-container { max-width: 100%; }
}
