/* Dipakai oleh: login.php */

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-50: #f8fafc;
}

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

body {
  font-family:
    'Plus Jakarta Sans',
    system-ui,
    -apple-system,
    sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  color: var(--slate-900);
  position: relative;
  overflow-x: hidden;
}

/* Subtle glowing background orbs */
body::before,
body::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 70%);
  z-index: 0;
  pointer-events: none;
}
body::before {
  top: 5%;
  left: 10%;
}
body::after {
  bottom: 5%;
  right: 10%;
}

.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 410px;
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brand & Logo Header */
.brand-header {
  text-align: center;
  margin-bottom: 26px;
}

.logo-wrapper {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--slate-200);
  padding: 10px;
  transition: transform 0.25s ease;
}

.logo-wrapper:hover {
  transform: scale(1.04);
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border-radius: 14px;
  color: #ffffff;
  font-size: 34px;
}

.app-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.company-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
}

/* Notifications & Error */
.alert-box {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background-color: var(--primary-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Form Inputs */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--slate-900);
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.form-control::placeholder {
  color: var(--slate-400);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.form-control:focus + .input-icon,
.input-group:focus-within .input-icon {
  color: var(--primary);
}

.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.toggle-password:hover {
  color: var(--slate-800);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Footer Role Info */
.system-roles {
  margin-top: 24px;
  padding: 14px;
  background-color: var(--slate-50);
  border-radius: 12px;
  border: 1px dashed var(--slate-200);
  font-size: 11.5px;
  color: var(--slate-600);
  line-height: 1.6;
}

.system-roles strong {
  color: var(--slate-800);
  display: block;
  margin-bottom: 4px;
}

.role-tag {
  background: #e2e8f0;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--slate-800);
  display: inline-block;
}
