/* Pixel-Accurate Login Page Styling for admin.jjstationery.com matching reference image */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand-blue: #1d68d8;
  --brand-blue-hover: #1656b8;
  --brand-blue-active: #124699;
  --bg-input: #ebf0f7;
  --text-dark: #1e293b;
  --text-body: #333333;
  --text-placeholder: #7c8ba1;
  --icon-color: #64748b;
  --radius-card: 8px;
  --radius-input: 6px;
  --radius-btn: 6px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(rgba(8, 16, 38, 0.75), rgba(6, 11, 25, 0.85)), url('../img/bg-login.jpeg') center/cover no-repeat fixed;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  color: var(--text-dark);
}

/* Page Outer Wrapper */
.login-page-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main Login Card */
.login-card {
  width: 100%;
  max-width: 410px;
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.12);
  padding: 44px 38px 36px 38px;
  display: flex;
  flex-direction: column;
}

/* Header Headings */
.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 6px 0;
  text-align: center;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  margin: 0 0 32px 0;
  text-align: center;
}

/* Input Group Container */
.input-group-custom {
  position: relative;
  margin-bottom: 16px;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--icon-color);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--icon-color);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.input-icon-right:hover {
  color: var(--brand-blue);
}

.form-control-custom {
  width: 100%;
  height: 46px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  padding: 0 16px 0 44px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

.form-control-custom.has-right-icon {
  padding-right: 44px;
}

.form-control-custom::placeholder {
  color: var(--text-placeholder);
  font-size: 13.5px;
}

.form-control-custom:focus {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(29, 104, 216, 0.15);
}

/* Forgot Password Row */
.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  margin-bottom: 24px;
}

.forgot-password-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
}

/* Submit Button */
.btn-login-submit {
  width: 100%;
  height: 46px;
  background: var(--brand-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 18px;
}

.btn-login-submit:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 4px 12px rgba(29, 104, 216, 0.3);
}

.btn-login-submit:active {
  background: var(--brand-blue-active);
  transform: scale(0.99);
}

/* Signup Row */
.signup-row {
  text-align: center;
  margin: 0 0 14px 0;
  font-size: 13px;
  color: #333333;
}

.signup-link {
  color: var(--brand-blue);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.signup-link:hover {
  color: var(--brand-blue-hover);
}

/* Security Team Footer */
.security-branding {
  text-align: center;
  margin: 0;
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.security-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.security-link:hover {
  text-decoration: underline;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px 28px 24px;
    max-width: 100%;
  }

  .login-title {
    font-size: 25px;
  }
}

/* Loader & Modal Overlays */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loader-overlay.active {
  display: flex;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
}