/* ============================================
   Admin Login Page Styles
   ============================================ */

/* Login Container */
.admin-login-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 3.5rem;
  margin-bottom: 2rem;
}

/* Login Title */
.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e3a5f;
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.login-title i {
  color: #13c296;
  font-size: 1.5rem;
}

/* Login Instructions Box */
.login-instructions {
  background: #f0f9ff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.instructions-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.instructions-list {
  list-style: decimal;
  padding-left: 1.5rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.8;
}

.instructions-list li {
  margin-bottom: 0.5rem;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form Grid for 2-column layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-password-link {
  color: #3b82f6;
  font-size: 0.75rem;
  text-transform: none;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  color: #1f2937;
  background-color: white;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #13c296;
  box-shadow: 0 0 0 3px rgba(19, 194, 150, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

/* Password Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .password-input {
  padding-right: 3rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3rem;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.password-toggle-btn:hover {
  color: #13c296;
}

.password-toggle-btn:focus {
  outline: none;
}

.password-toggle-btn i {
  pointer-events: none;
}

/* Captcha Styles */
.captcha-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.captcha-image {
  flex: 1;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}

.captcha-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.5rem;
  font-family: 'Courier New', monospace;
  text-decoration: line-through;
  text-decoration-color: #6b7280;
  text-decoration-thickness: 1px;
}

.captcha-refresh-btn {
  width: 60px;
  height: 60px;
  background: #1e3a5f;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.captcha-refresh-btn:hover {
  background: #2a4f7a;
  transform: rotate(180deg);
}

.captcha-refresh-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.3);
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 1rem;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.login-btn:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

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

.login-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
}

/* Responsive Design */
@media (max-width: 640px) {
  .admin-login-container {
    padding: 1.5rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .instructions-title {
    font-size: 0.9rem;
  }

  .instructions-list {
    font-size: 0.85rem;
  }

  .captcha-container {
    flex-direction: column;
  }

  .captcha-refresh-btn {
    width: 100%;
  }
}

/* Utility Classes */
.mt-3 {
  margin-top: 0.75rem;
}

.mr-2 {
  margin-right: 0.5rem;
}