/* ==========================================================================
   MGMP PJOK SMK Kota Pekalongan - Login Page Stylesheet
   ========================================================================== */

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

:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-card: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
}

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

body.auth-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  background-image: url('../images/login-bg-shapes.svg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: 1.5rem 1rem;
  position: relative;
  overflow-x: hidden;
}

.auth-card-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
  margin: auto;
}

/* Top Back Navigation Pill */
.auth-top-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.85rem;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e40af;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #bfdbfe;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.15);
}

.auth-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2.25rem 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.auth-logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  text-align: left;
}

.auth-brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
}

.auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0.65rem 2.8rem 0.65rem 2.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 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: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #475569;
}

.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  accent-color: var(--primary);
  cursor: pointer;
}

.forgot-password {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  height: 48px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-auth-submit:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
  transform: translateY(-1px);
}

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

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-footer-link {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.auth-footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Alert Notification */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
}

.auth-alert.show {
  display: block;
}

.auth-alert-danger {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Loading animation for login button */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Responsive Auth */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 16px;
  }
  .auth-title {
    font-size: 1.25rem;
  }
  .auth-logo-badge {
    margin-bottom: 1.25rem;
  }
}

