/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Main Login Container */
.login-container {
  width: 100%;
  max-width: 450px;
}

/* Login Card */
.login-card {
  background: white;
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-icon {
  font-size: 24px;
  color: #666;
}

.login-header h1 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.subtitle {
  color: #777;
  font-size: 14px;
  margin: 0;
}

/* Form Styles */
.login-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #999;
}

.input-wrapper input::placeholder {
  color: #999;
}

.input-icon {
  position: absolute;
  left: 10px;
  font-size: 16px;
  color: #999;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #999;
}

/* Password Requirements */
.password-requirements {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.requirement {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
}

.requirement.met {
  background: #e8f5e8;
  color: #2d5a2d;
  border-color: #b8d4b8;
}

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

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #555;
}

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

.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  position: relative;
  background: white;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
  background: #666;
  border-color: #666;
}

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

.forgot-password {
  color: #666;
  text-decoration: none;
  font-size: 12px;
}

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

/* Login Button */
.login-btn {
  width: 100%;
  padding: 12px;
  background: #666;
  color: white;
  border: 1px solid #555;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: #555;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-text {
  display: inline-block;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Alerts */
.alerts-container {
  margin-bottom: 20px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.alert-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.alert.tip {
  background: #fff8e1;
  border: 1px solid #ffecb3;
  color: #a67c00;
}

.alert.error {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

.alert-content strong {
  font-weight: bold;
}

/* Footer */
.login-footer {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.environment-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.info-item {
  text-align: center;
}

.info-label {
  display: block;
  font-size: 10px;
  color: #999;
  margin-bottom: 2px;
}

.info-value {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #666;
}

/* Acceptance Criteria */
.acceptance-criteria {
  margin-top: 25px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
}

.acceptance-criteria summary {
  cursor: pointer;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.acceptance-criteria ul {
  color: #555;
  font-size: 11px;
  padding-left: 15px;
  line-height: 1.5;
}

.acceptance-criteria li {
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-card {
    padding: 25px 20px;
  }
  
  .login-header h1 {
    font-size: 18px;
  }
  
  .subtitle {
    font-size: 12px;
  }
  
  .environment-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .password-requirements {
    flex-direction: column;
    gap: 4px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Simple Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

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

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

/* Test Account Info */
.test-account-info {
  margin-top: 20px;
  padding: 15px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #f8f9fa;
  text-align: center;
}

.test-account-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.test-icon {
  font-size: 16px;
}

.test-account-details {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
}

.test-credential {
  display: flex;
  align-items: center;
  gap: 5px;
}

.test-credential .label {
  color: #666;
}

.test-credential .value {
  color: #333;
  font-weight: bold;
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
