/* Modern 2025 Dashboard Login Page - PlayFountain Brand Style */

/* ============================================
   Login Container & Layout
   ============================================ */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--pf-blue) 0%, rgba(46, 166, 222, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================
   Login Card
   ============================================ */
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--pf-bg-3);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   Logo
   ============================================ */
.login-logo {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logo img {
  height: 60px;
  width: auto;
}

/* ============================================
   Header
   ============================================ */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--pf-dark-1);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 0.9375rem;
  color: var(--pf-dark-2);
  margin: 0;
  font-weight: 400;
}

/* ============================================
   Form Styles
   ============================================ */
.login-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pf-dark-1);
  margin-bottom: 0.5rem;
}

.form-label i {
  color: var(--pf-action-1);
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--pf-dark-1);
  background: var(--pf-bg-3);
  border: 1.5px solid var(--pf-light-gray);
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: var(--pf-gray);
  font-weight: 400;
}

.form-input:hover {
  border-color: var(--pf-action-1);
  background: rgba(46, 166, 222, 0.02);
}

.form-input:focus {
  border-color: var(--pf-action-1);
  background: var(--pf-bg-3);
  box-shadow: none !important;
}

/* ============================================
   Form Errors
   ============================================ */
.form-errors {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.error-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--pf-red);
  font-weight: 500;
}

.error-item i {
  font-size: 0.875rem;
}

/* ============================================
   Form Footer (Forgot Password)
   ============================================ */
.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.forgot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--pf-action-1);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.forgot-link:hover {
  color: var(--pf-action-1);
  opacity: 0.8;
  text-decoration: none;
}

.forgot-link i {
  font-size: 0.875rem;
}

/* ============================================
   Login Button
   ============================================ */
.login-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--pf-light-1);
  background: var(--pf-action-1);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
}

.login-button:hover {
  background: var(--pf-action-1);
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: none !important;
}

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

.login-button i {
  font-size: 1.125rem;
  transition: transform 0.2s ease;
}

.login-button:hover i {
  transform: translateX(2px);
}

/* ============================================
   Alerts
   ============================================ */
.login-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border: 1.5px solid;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-alert.alert-warning {
  background: rgba(255, 121, 0, 0.1);
  border-color: var(--pf-orange);
  color: #664d03;
}

.login-alert.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: var(--pf-red);
  color: #721c24;
}

.alert-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.alert-content i {
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.alert-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: inherit;
}

.alert-content p {
  margin: 0.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.alert-content .lockout-time {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.alert-close:hover {
  opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 576px) {
  .login-container {
    padding: 1rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .login-header h1 {
    font-size: 1.625rem;
  }

  .login-subtitle {
    font-size: 0.875rem;
  }

  .form-input {
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
  }

  .login-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    min-height: 48px;
  }
}

@media (max-width: 375px) {
  .login-card {
    padding: 1.5rem 1.25rem;
  }

  .login-logo img {
    height: 50px;
  }
}

/* ============================================
   Accessibility
   ============================================ */
.login-button:focus,
.form-input:focus,
.forgot-link:focus {
  outline: 2px solid var(--pf-action-1);
  outline-offset: 2px;
}

/* ============================================
   Loading State (for future use)
   ============================================ */
.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-button:disabled:hover {
  transform: none;
  box-shadow: none;
}
