/* ============================================
   Login Page - Intralinks Style
============================================ */

/* Reset and Base Styles */
.login-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.login-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.025em;
}

.login-header-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: #0054a6;
}

.header-link i {
  font-size: 1rem;
}

/* Main Container */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 3rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  min-height: 600px;
}

/* Left Panel */
.login-left-panel {
  background: linear-gradient(135deg, #0054a6 0%, #0073e6 100%);
  color: white;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-message h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: white;
}

.welcome-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature i {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.feature p {
  font-size: 0.9375rem;
  opacity: 0.8;
  line-height: 1.5;
  margin: 0;
}

/* Right Panel */
.login-right-panel {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

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

.login-card-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #6b7280;
  font-size: 0.9375rem;
  margin: 0;
}

/* Error Message */
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: slideIn 0.3s ease;
}

.login-error i {
  color: #dc2626;
  font-size: 1.25rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.error-content {
  flex: 1;
}

.error-content strong {
  display: block;
  color: #7f1d1d;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.error-content p {
  color: #7f1d1d;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

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

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  z-index: 1;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #111827;
  background: white;
  transition: all 0.15s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #0054a6;
  box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.1);
}

.input-with-icon input.input-error {
  border-color: #dc2626;
  background: #fef2f2;
}

.input-with-icon input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 33%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
}

.toggle-password:hover {
  color: #0054a6;
}

.password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-password {
  font-size: 0.875rem;
  color: #0054a6;
  text-decoration: none;
  font-weight: 500;
}

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

/* Form Options */
.form-options {
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

.remember-me label {
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #0054a6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  margin-bottom: 1.5rem;
}

.login-button:hover {
  background: #004494;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 84, 166, 0.15);
}

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

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Security Notice */
.security-notice {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.security-notice i {
  color: #0284c7;
  font-size: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.security-notice p {
  color: #075985;
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.4;
}

/* Two-Factor Note */
.two-factor-note {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.two-factor-note p {
  color: #92400e;
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.4;
}

/* Demo Credentials */
.demo-credentials {
  margin-bottom: 2rem;
}

.demo-credentials details {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.demo-credentials summary {
  padding: 0.75rem 1rem;
  background: #f9fafb;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-credentials summary::before {
  content: "▶";
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.demo-credentials details[open] summary::before {
  transform: rotate(90deg);
}

.demo-info {
  padding: 1rem;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.demo-info p {
  font-size: 0.8125rem;
  color: #4b5563;
  margin: 0.25rem 0;
}

/* Footer Links */
.login-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.login-footer-links a {
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: none;
}

.login-footer-links a:hover {
  color: #0054a6;
  text-decoration: underline;
}

.separator {
  color: #d1d5db;
  font-size: 0.75rem;
}

/* Copyright */
.login-copyright {
  text-align: center;
}

.login-copyright p {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.25rem 0;
}

.copyright-note {
  font-size: 0.6875rem !important;
  opacity: 0.8;
}

/* 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);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 2rem auto;
  }

  .login-left-panel {
    padding: 2rem;
  }

  .welcome-message h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .login-header-container {
    padding: 0 1rem;
  }

  .login-container {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-height: auto;
  }

  .login-left-panel,
  .login-right-panel {
    padding: 1.5rem;
  }

  .welcome-message h1 {
    font-size: 1.75rem;
  }

  .login-card-header h2 {
    font-size: 1.5rem;
  }

  .login-footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .separator {
    display: none;
  }
}
