/* ==========================================================================
   Admin Login Page Styles
   ========================================================================== */

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.login-header .logo {
  max-height: 40px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.login-header h1 {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  font-weight: 900;
}

.login-header .subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: .95rem;
}

.login-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
  font-size: .9rem;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  transition: all .2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(28, 122, 237, 0.1);
}

.error-message {
  display: none;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  color: #991B1B;
  font-size: .9rem;
  font-weight: 600;
}

.error-message.show {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: .875rem;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(28, 122, 237, 0.3);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 122, 237, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.form-footer a {
  color: var(--brand-600);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}

.form-footer a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: .85rem;
}

.login-footer p {
  margin: 0;
}

/* Loading state */
.btn-submit.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: .5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}