/* Albi Boutique — Modern Luxury Admin Login Styles */

:root {
  --admin-ink: #243657;
  --admin-gold: #84b130;
  --admin-gold-hover: #759e29;
  --admin-surface: #374d7f;
  --admin-line: rgba(255, 255, 255, 0.1);
  --admin-muted: #9c9990;
}

body.login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #243657 !important;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(132, 177, 48, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 82% 82%, rgba(132, 177, 48, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.02) 0%, transparent 40%) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  padding: 24px 16px;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

/* Subtle decorative mesh background */
body.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 410px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(23, 23, 21, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  padding: 36px 32px 30px;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(132, 177, 48, 0.1);
  box-sizing: border-box;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-crop {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #243657;
  border: 2px solid var(--admin-gold);
  box-shadow: 0 0 28px rgba(132, 177, 48, 0.28);
  margin: 0 auto 16px;
  display: block;
}

.login-logo-crop img {
  position: absolute;
  width: 134%;
  height: auto;
  max-width: none;
  left: -19%;
  top: -13%;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(132, 177, 48, 0.12);
  border: 1px solid rgba(132, 177, 48, 0.25);
  color: var(--admin-gold);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.login-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--admin-gold);
  box-shadow: 0 0 6px var(--admin-gold);
}

.login-header h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.login-header p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #9c9990;
  line-height: 1.4;
}

/* Error Alert */
.login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: login-shake 0.35s ease;
}

.login-error svg {
  flex-shrink: 0;
  color: #ef4444;
}

@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* Form Layout */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-group label {
  font-size: 0.79rem;
  font-weight: 650;
  color: #dbe4d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.input-icon {
  position: absolute;
  left: 13px;
  color: #7b786f;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.16s ease;
}

.input-wrapper input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 42px 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.86rem;
  font-family: inherit;
  transition: all 0.16s ease;
}

.input-wrapper input::placeholder {
  color: #63615b;
}

.input-wrapper input:focus {
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(132, 177, 48, 0.22);
}

.input-wrapper input:focus ~ .input-icon {
  color: var(--admin-gold);
}

.toggle-password-btn {
  position: absolute;
  right: 7px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: #7b786f;
  cursor: pointer;
  border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}

.toggle-password-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Submit Button */
.login-submit-btn {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  background: var(--admin-gold);
  color: var(--admin-ink);
  border: 0;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(132, 177, 48, 0.28);
  transition: all 0.18s ease;
  margin-top: 6px;
}

.login-submit-btn:hover {
  background: #97c344;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(132, 177, 48, 0.38);
}

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

/* Footer Links & Notes */
.login-card-footer {
  text-align: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9c9990;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.back-to-store:hover {
  color: var(--admin-gold);
}

.login-security-notice {
  text-align: center;
  margin-top: 18px;
  font-size: 0.74rem;
  color: #63615a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
