/* Modern professional login (green on black) */

* { box-sizing: border-box; }

body.login {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('../images/latar.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.login-wrapper { width:100%; display:flex; align-items:center; justify-content:center; padding:48px 20px; }

.login-card {
  width:100%;
  max-width:420px;
  background: #ffffff;
  border-radius:14px;
  padding:40px 32px;
  display: flex;
  flex-direction: column;
  gap:24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(27,94,32,0.15);
}

.login-header h1 {
  font-size: 24px;
  color: #1b5e20;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.login-header p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.error-message, .success-message { padding:12px 14px; border-radius:10px; margin:6px 0 12px; font-size:13px; display:none; }
.error-message { background: rgba(220,38,38,0.06); color:#ffb4b4; border-left:4px solid rgba(220,38,38,0.9); }
.success-message { background: rgba(34,197,94,0.06); color:#b6f6c6; border-left:4px solid rgba(34,197,94,0.95); }
.error-message.show, .success-message.show { display:block; }

.form-inner { padding: 6px 4px 2px 4px; }
.form-group { margin-bottom:16px; position:relative; }
.form-group label { display:block; margin-bottom:8px; color:#6b7280; font-weight:600; font-size:14px; }
.form-group input {
  width:100%;
  padding:12px 14px 12px 44px;
  border:1px solid #d1d5db;
  border-radius:10px;
  background: #ffffff;
  color:#1f2937;
  font-size:15px;
  transition: 0.2s;
}
.form-group input::placeholder { color: #9ca3af; }
.form-group input:focus { outline:none; border-color: #1b5e20; box-shadow:0 0 0 8px rgba(27,94,32,0.05); background: #ffffff; }

/* input icons (SVG data URIs) */
.form-group.icon-user::before,
.form-group.icon-pass::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 36px;
  width:18px; height:18px;
  opacity:0.95;
}
.form-group.icon-user::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231b5e20' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'></path><circle cx='12' cy='7' r='4'></circle></svg>");
  background-repeat:no-repeat; background-position:center; background-size:18px 18px;
}
.form-group.icon-pass::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231b5e20' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2' ry='2'></rect><path d='M7 11V7a5 5 0 0 1 10 0v4'></path></svg>");
  background-repeat:no-repeat; background-position:center; background-size:18px 18px;
}

.form-footer { display:flex; justify-content:space-between; gap:10px; align-items:center; margin:8px 0 20px; }
.checkbox-wrapper { display:flex; gap:8px; align-items:center; color:#1f2937; font-size:14px; font-weight:500; }
.checkbox-wrapper input[type="checkbox"] { accent-color:#1b5e20; width:16px; height:16px; cursor: pointer; }
.checkbox-wrapper label { margin: 0; cursor: pointer; }
.form-footer a { color:#1b5e20; font-weight:600; font-size:14px; }
.form-footer a:hover { color:#0d3a0a; }

.login-btn { width:100%; padding:14px; background: linear-gradient(90deg,#1b5e20,#0d3a0a); color:#ffffff; border-radius:10px; border:none; font-weight:800; font-size:15px; box-shadow: 0 6px 20px rgba(27,94,32,0.15); }
.login-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(27,94,32,0.2); color: #ffffff; }

.demo-info { background: rgba(255,255,255,0.02); padding:12px; border-radius:8px; color:var(--muted); font-size:13px; }

/* small screens: tighten spacing and scale down logo */
@media (max-width:480px) {
  .login-card { padding:28px 20px; }
  .brand-logo { width:64px; height:64px; }
  .login-header h1 { font-size:20px; }
  .login-header p { font-size:12px; }
}

@media (max-width:360px) {
  .login-wrapper { padding:16px 12px; }
  .login-card { padding:24px 16px; gap:16px; }
  .brand-logo { width:56px; height:56px; }
  .login-header h1 { font-size:18px; }
}

