* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --prime: #8B0E0E;
  --prime-hover: #A51515;
}

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

.login-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-header h1 {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.login-header p {
  color: #666;
  font-size: 11px;
  font-weight: 400;
}

.error-box {
  background: #fff5f5;
  border-right: 2px solid var(--prime);
  color: #c53030;
  padding: 10px 12px;
  border-radius: 7px;
  margin-bottom: 16px;
  font-size: 11px;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 14px;
  position: relative;
}

.input-group label {
  display: block;
  color: #2d3748;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  fill: #a0aec0;
  transition: fill 0.3s ease;
}

.input-field {
  width: 100%;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 10px 38px 10px 12px;
  color: #2d3748;
  font-size: 12px;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  font-weight: 500;
}

.input-field:focus {
  outline: none;
  background: #fff;
  border-color: var(--prime);
  box-shadow: 0 0 0 3px rgba(139, 14, 14, 0.1);
}

.input-field:focus ~ .input-icon svg {
  fill: var(--prime);
}

.input-field::placeholder {
  color: #cbd5e1;
  font-size: 11px;
}

.toggle-password {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.toggle-password svg {
  width: 16px;
  height: 16px;
  fill: #a0aec0;
  transition: fill 0.3s ease;
}

.toggle-password:hover svg {
  fill: var(--prime);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox-wrap input {
  width: 14px;
  height: 14px;
  accent-color: var(--prime);
  cursor: pointer;
}

.checkbox-wrap label {
  color: #4a5568;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}

.forgot-password {
  color: var(--prime);
  font-size: 11px;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.forgot-password:hover {
  color: var(--prime-hover);
}

.btn-submit {
  width: 100%;
  background: var(--prime);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 11px;
  font-size: 12px;
  font-weight: 900;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.btn-submit:hover {
  background: var(--prime-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 14, 14, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.separator span {
  color: #718096;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-google {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 10px;
  color: #2d3748;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-google:hover {
  background: #f7fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-icon {
  width: 15px;
  height: 15px;
}

.signup-text {
  text-align: center;
  margin-top: 16px;
  font-size: 11px;
  color: #666;
}

.signup-text a {
  color: var(--prime);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.signup-text a:hover {
  color: var(--prime-hover);
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .login-box {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .login-box {
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .forgot-password {
    align-self: flex-end;
  }
}