.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #f5f5f5;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.background-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
}

.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(0, 120, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(164, 196, 228, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 45% 85%, rgba(0, 120, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 75% 15%, rgba(164, 196, 228, 0.1) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
}

.signin-card {
  background: white;
  border-radius: 2px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 0 1px rgba(0, 0, 0, 0.1);
  padding: 30px 32px;
  width: 100%;
  max-width: 360px;
  margin-bottom: 16px;
  position: relative;
}

.logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-start;
}

.header-section {
  margin-bottom: 24px;
}

.signin-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #323130;
  margin: 0;
  line-height: 1.2;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
}

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

.input-container {
  position: relative;
  margin-bottom: 24px;
}

.email-input {
  width: 100%;
  padding: 16px 0 8px 0;
  border: none;
  border-bottom: 1px solid #605E5C;
  font-size: 15px;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
  outline: none;
  background: transparent;
  color: #323130;
  transition: border-color 0.2s ease;
}

.email-input::placeholder {
  color: #605E5C;
  opacity: 0.8;
}

.email-input:focus {
  border-bottom-color: #0078D4;
}

.input-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #0078D4;
  transition: width 0.3s ease;
}

.email-input:focus + .input-underline {
  width: 100%;
}

.error-message {
  color: #D83B01;
  font-size: 13px;
  margin-bottom: 8px;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message::before {
  content: '!';
  font-size: 12px;
}

.email-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.password-label {
  font-size: 15px;
  color: #323130;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
  margin-bottom: 4px;
  font-weight: 600;
}

.back-arrow-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.167s;
}

.back-arrow-button:hover:not(:disabled) {
  background-color: #E1DFDD;
}

.back-arrow-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.email-display {
  font-size: 17px;
  color: #737373;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
  font-weight: 600;
}

.links-container {
  margin-bottom: 24px;
}

.create-account {
  font-size: 13px;
  color: #605E5C;
  margin-bottom: 12px;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
}

.cant-access {
  font-size: 13px;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
}

.link {
  color: #0078D4;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link:hover {
  color: #106EBE;
  text-decoration: underline;
}

.button-container {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.back-button {
  background: #F3F2F1;
  border: 1px solid #F3F2F1;
  color: #323130;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
  transition: all 0.2s ease;
  min-width: 80px;
}

.back-button:hover {
  background: #EDEBE9;
  border-color: #EDEBE9;
}

.back-button:focus {
  outline: 1px solid #0078D4;
  outline-offset: 2px;
}

.next-button {
  background: #0078D4;
  border: 1px solid #0078D4;
  color: white;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
  transition: all 0.2s ease;
  min-width: 80px;
}

.next-button:hover {
  background: #106EBE;
  border-color: #106EBE;
}

.next-button:focus {
  outline: 1px solid #605E5C;
  outline-offset: 2px;
}

.footer {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-link {
  color: #605E5C;
  text-decoration: none;
  font-size: 12px;
  font-family: 'Segoe UI', 'Segoe UI Web', 'Segoe UI Symbol', 'Helvetica Neue', 'BBAlpha Sans', 'S60 Sans', Arial, sans-serif;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #323130;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
  .container {
    padding: 20px 16px;
  }
  
  .signin-card {
    padding: 32px 24px;
  }
  
  .footer {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 32px;
    margin-bottom: 16px;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .signin-card {
    padding: 24px 20px;
  }
  
  .button-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .back-button,
  .next-button {
    width: 100%;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .signin-card {
    border: 1px solid #000;
  }
  
  .email-input {
    border-bottom-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
