/* auth.css */
:root {
  --primary-red: #dc2626;
  --primary-red-dark: #b91c1c;
  --surface-dark: var(--primary-red);
  --background-light: #fef2f2;
  --error-red: #dc2626;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --border-gray: #4b5563;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--background-light);
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: var(--primary-red);
  border-radius: 1rem;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.2),
    0 20px 48px rgba(0, 0, 0, 0.15),
    0 0 8px rgba(255, 255, 255, 0.05),
    inset 0 0 2px rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  position: relative;
}

.branding {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  width: 200px;
  margin-bottom: 1rem;
}

.brand-text h1 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.brand-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.input-field {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  z-index: 2;
}

.input-field input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--primary-red);
  border-radius: 0.75rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-red);
  transition: border-color var(--transition);
}

.input-field input::placeholder {
  color: #64748b;
}

.input-field label {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  transition: all var(--transition);
}

.input-icon {
  color: #64748b;
}

.input-field input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label {
  transform: translate(-2rem, -170%);
  font-size: 0.875rem;
  color: var(--primary-red);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkmark {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border-gray);
  border-radius: 0.375rem;
  position: relative;
  transition: all var(--transition);
}

.checkbox input:checked ~ .checkmark {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.checkmark:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--transition);
}

.checkbox input:checked ~ .checkmark:after {
  opacity: 1;
}

.primary-button {
  width: 100%;
  padding: 1rem;
  background: #ffffff;
  color: var(--primary-red);
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
}

.primary-button:hover {
  background: #fff5f5;
}

.button-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-red);
}

.alert {
  padding: 1rem;
  background: #fef2f2;
  color: var(--error-red);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--primary-red);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
  }
  
  .brand-text h1 {
    font-size: 1.5rem;
  }
}