/* styles.css */

/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

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

body {
  background: linear-gradient(135deg, #1e1e2f, #282845);
  font-family: 'Inter', sans-serif;
  color: #e0e0e0;
  min-height: 100vh;
  display: block;
}

/* Container for Auth Pages */
.auth-container {
  max-width: 480px;
  padding: 2rem;
  display: block;
  margin: 0 auto;
}

/* Auth Card with Glassmorphism */
.auth-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title Styling */
.auth-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* Form Styling */
.auth-form {
  width: 100%;
}

/* Form Group */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

/* Labels */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #f0f0f0;
}

/* Input Wrapper for Icons */
.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  color: #a0a0a0;
}

/* Input Fields */
.form-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1rem;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.form-input::placeholder {
  color: #c0c0c0;
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px #6c63ff;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 0.75rem;
  background: #6c63ff;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
  background: #5753d9;
  transform: translateY(-2px);
}

.btn-submit:active {
  background: #4a43b8;
  transform: translateY(0);
}

/* Footer Text */
.auth-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #c0c0c0;
  text-align: center;
}

.auth-link {
  color: #6c63ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #ffffff;
}

/* Error Message */
.error-message {
  display: flex;
  align-items: center;
  background: rgba(255, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  animation: fadeIn 0.5s ease-in-out;
}

.error-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
  color: #ff6b6b;
}

.error-message span {
  color: #ff6b6b;
  font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }
}
