/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
  color: #333;
  min-height: 100vh;
}

/* Login Container */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: transparent;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #1976d2;
  border-radius: 50%;
  position: relative;
}

.logo-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  font-size: 18px;
  color: #333;
  line-height: 1;
}

.logo-sub {
  font-size: 14px;
  color: #666;
  line-height: 1;
}

.support-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.support-text {
  color: #666;
}

.contact-support {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
}

.contact-support:hover {
  text-decoration: underline;
}

/* Login Form Container */
.login-form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-form-wrapper {
  background: white;
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* User Icon */
.user-icon {
  
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px 0;
    position: relative;
}

/* Login Title and Description */
.login-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  text-align: left;
}

.login-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.5;
  text-align: left;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  /* border-color: #1976d2; */
  background: white;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-input::placeholder {
  color: #999;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.password-input {
  position: relative;
  width:100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: color 0.2s;
  z-index: 1;
}

.password-input {
  padding-right: 44px;
}

.password-toggle:hover {
  color: #666;
}

/* Sign In Button */
.sign-in-btn {
  background: #1976d2;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.sign-in-btn:hover {
  background: #1565c0;
}

.sign-in-btn:active {
  transform: translateY(1px);
}

.sign-in-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  transition: opacity 0.2s;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.sign-in-btn.loading .btn-text {
  opacity: 0;
}

.sign-in-btn.loading .btn-loader {
  opacity: 1;
}

/* Form Validation States */
.form-input.error {
  border-color: #e53935;
  background: #ffebee;
}

.form-input.success {
  border-color: #2e7d32;
  background: #e8f5e8;
}

.error-message {
  color: #e53935;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-header {
    padding: 16px 20px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-icon::after {
    width: 16px;
    height: 16px;
  }

  .logo-main {
    font-size: 16px;
  }

  .logo-sub {
    font-size: 12px;
  }

  .support-link {
    font-size: 12px;
  }

  .login-form-container {
    padding: 16px;
  }

  .login-form-wrapper {
    padding: 32px 24px;
  }

  .user-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .login-title {
    font-size: 20px;
  }

  .login-description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .login-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .login-form-wrapper {
    padding: 24px 16px;
  }

  .form-input {
    padding: 12px 14px;
  }

  .sign-in-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form-wrapper {
  animation: fadeIn 0.5s ease-out;
}

/* Focus styles for accessibility */
.form-input:focus,
.password-toggle:focus,
.sign-in-btn:focus,
.contact-support:focus {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-input {
    border-width: 2px;
  }
  
  .sign-in-btn {
    border: 2px solid #1976d2;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}