/* Hospital Sign In Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* Hospital Header */
.signin-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2c3e50;
}

.logo {
  height: 50px;
  margin-right: 1rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: #3498db;
}

/* Sign In Hero Section */
.signin-hero {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
}

.signin-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Sign In Card */
.signin-card {
  padding: 3rem;
  background: white;
}

.signin-card .signin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.signin-card .signin-header i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.signin-card .signin-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.signin-card .signin-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

/* Form Styles */
.signin-form {
  max-width: 400px;
}

.error-message {
  background: #fee;
  color: #c0392b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid #e74c3c;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #3498db;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.remember-me input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ecf0f1;
  border-radius: 4px;
  margin-right: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
  background: #3498db;
  border-color: #3498db;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: #3498db;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Sign In Button */
.signin-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.signin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

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

/* Sign In Footer */
.signin-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ecf0f1;
}

.signin-footer p {
  margin-bottom: 1rem;
  color: #7f8c8d;
}

.signup-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.signup-link:hover {
  text-decoration: underline;
}

.quick-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.quick-links a {
  color: #7f8c8d;
  text-decoration: none;
}

.quick-links a:hover {
  color: #3498db;
}

.separator {
  color: #bdc3c7;
}

/* Sign In Info Section */
.signin-info {
  padding: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
}

.info-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.info-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-item i {
  font-size: 1.5rem;
  color: #3498db;
  width: 30px;
}

.feature-item span {
  font-weight: 500;
}

/* Emergency Notice */
.emergency-notice {
  background: rgba(231, 76, 60, 0.9);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.emergency-notice i {
  font-size: 2rem;
  color: #ecf0f1;
}

.emergency-notice h4 {
  color: white;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.emergency-notice p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ============================================================================
   Enhanced Login Flow Features
   ============================================================================ */

/* Warning Messages */
.warning-message {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid #ffc107;
  animation: slideIn 0.3s ease-out;
}

/* Input Feedback */
.input-feedback {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.input-feedback.error {
  color: #e74c3c;
  opacity: 1;
}

.input-feedback.success {
  color: #27ae60;
  opacity: 1;
}

/* Enhanced Form Groups */
.form-group input:focus + .input-feedback,
.form-group .password-input:focus-within + .input-feedback {
  opacity: 1;
}

/* Captcha Styling */
.captcha-group {
  margin: 1.5rem 0;
}

.captcha-container {
  margin-top: 0.5rem;
}

.captcha-placeholder {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.captcha-placeholder:hover {
  border-color: #3498db;
  background: #e8f4fd;
}

.captcha-placeholder i {
  color: #6c757d;
  font-size: 1.2rem;
}

.captcha-placeholder span {
  flex: 1;
  color: #495057;
  font-weight: 500;
}

input[type="checkbox"]:checked + .captcha-checkbox {
  background: #3498db;
  border-color: #3498db;
}

input[type="checkbox"]:checked + .captcha-checkbox::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Enhanced Sign In Button with Loading State */
.signin-btn {
  position: relative;
  overflow: hidden;
}

.signin-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.signin-btn:hover::before {
  left: 100%;
}

.signin-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-loader i {
  animation: spin 1s linear infinite;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.animate-in {
  animation: slideIn 0.3s ease-out;
}

/* Tooltip */
.tooltip {
  position: fixed;
  background: #2c3e50;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Enhanced Remember Me */
.remember-me:hover .checkmark {
  border-color: #3498db;
}

/* Enhanced Password Toggle */
.password-toggle {
  border-radius: 4px;
}

.password-toggle:hover {
  background: rgba(52, 152, 219, 0.1);
}

/* Form Submission Prevention */
.signin-form.submitting {
  pointer-events: none;
}

.signin-form.submitting .signin-btn {
  background: #95a5a6;
}

/* Progressive Enhancement */
@media (prefers-reduced-motion: reduce) {
  .signin-btn::before,
  .animate-in,
  .shake,
  .tooltip {
    animation: none !important;
  }

  .signin-btn:hover {
    transform: none;
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Enhanced Focus States */
.form-group input:focus,
.password-input:focus-within {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .signin-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .signin-card,
  .signin-info {
    padding: 2rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .features-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .emergency-notice {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .signin-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .signin-card,
  .signin-info {
    padding: 2rem;
  }

  .signin-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }

  .header-nav {
    display: none;
  }

  .hero-content {
    padding: 1rem;
  }

  .signin-card,
  .signin-info {
    padding: 1.5rem;
  }

  .signin-card .signin-header h1 {
    font-size: 2rem;
  }

  .signin-card .signin-header p {
    font-size: 1rem;
  }

  .features-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .emergency-notice {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .signin-card .signin-header h1 {
    font-size: 1.75rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .quick-links {
    flex-direction: column;
    gap: 0.25rem;
  }

  .separator {
    display: none;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signin-card {
  animation: fadeInUp 0.6s ease-out;
}

.signin-info {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Focus States for Accessibility */
.signin-btn:focus,
.form-group input:focus,
.password-toggle:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Loading State */
.signin-btn.loading {
  pointer-events: none;
  position: relative;
}

.signin-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  right: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}