:root {
  --navy-deep: #0b1f3a;
  --navy: #12294f;
  --gold: #c9a227;
  --gold-light: #e8c874;
  --off-white: #fbf8f2;
  --white: #ffffff;
  --ink-soft: #4a4741;
  --line: #e8e1d2;
  --saffron: #e9762b;
  --font-display: "Marcellus", serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); }

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 30% 20%, var(--navy) 0%, var(--navy-deep) 70%);
  overflow: hidden;
  padding: 20px;
}

.admin-login-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,162,39,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.admin-login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: rgba(251, 248, 242, 0.98);
  border-radius: 20px;
  border: 1px solid rgba(201,162,39,0.3);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
  padding: 44px 38px;
}

.admin-login-header { text-align: center; margin-bottom: 32px; }
.admin-shield-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold-light);
  margin-bottom: 16px;
}
.admin-login-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.admin-login-header p {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.admin-form-error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c2;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.admin-form-success {
  background: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #b7e1c2;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.admin-form-field { margin-bottom: 20px; }
.admin-form-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.admin-form-field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: 0.2s ease;
}
.admin-form-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.admin-password-wrap { position: relative; }
.admin-password-wrap input { padding-right: 44px; }
.admin-password-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 1rem;
}

.admin-login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.83rem;
}
.admin-checkbox { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.admin-checkbox input { accent-color: var(--gold); width: 15px; height: 15px; }
.admin-forgot-link { color: var(--saffron); font-weight: 600; text-decoration: none; }

.admin-login-submit {
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}
.admin-login-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(11,31,58,0.5); }

.admin-security-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 480px) {
  .admin-login-card { padding: 34px 24px; }
}

.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 10px;
}


.custom-toast {
    min-width: 320px;
    max-width: 420px;

    padding: 15px 16px;

    border-radius: 7px;

    display: flex;
    align-items: center;

    color: #fff;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);

    animation: toastSlideIn 0.35s ease forwards;

    position: relative;
}


.custom-toast-success {
    background: #34ca84;
}


.custom-toast-error {
    background: #dc3545;
}


.toast-icon {
    font-size: 19px;
    margin-right: 12px;
}


.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}


.toast-close {
    border: 0;
    background: transparent;
    color: #fff;

    font-size: 13px;

    cursor: pointer;

    padding: 5px;
}


.toast-close:hover {
    opacity: 0.75;
}


@keyframes toastSlideIn {

    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


@keyframes toastSlideOut {

    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }

}