/* Styling: auth.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a365d;
  --accent: #2b6cb0;
  --accent-light: #2f78c711;
  --text-main: #2d3748;
  --text-light: #718096;
  --bg: #f7fafc;
  --input-bg: #f7fafc;
  --input-border: #e2e8f0;
  --text: var(--text-main);
}

.dark-mode {
  --bg: #0f172a;
  --text: #ffffff;
  --input-bg: #1e293b;
  --input-border: #334155;
  --primary: #3182ce;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
  width: 300px;
}

.loader-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

.loader-logo span {
  color: #3182ce;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: #edf2f7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 0.4s ease;
}

#loader-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

body {
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.3s ease;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--text);
}

.auth-logo span {
  color: #3182ce;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group ion-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #94a3b8;
}

.input-group input {
  width: 100%;
  padding: 10px 15px 10px 48px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.input-group,
.btn-auth {
  width: 100%;
  display: block;
}

.btn-auth {
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.btn-auth:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.theme-toggle ion-icon {
  font-size: 1.5rem;
  color: var(--primary);
}
.auth-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.forgot-link,
.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease-in-out;
}

.forgot-link:hover,
.auth-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.theme-wrapper {
  position: fixed;
  top: 30px;
  right: 30px;
  cursor: pointer;
  background: var(--input-bg);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  border: 1px solid var(--input-border);
}

@media (max-width: 480px) {
  .auth-container {
    max-width: 100%;
  }

  .auth-card h1 {
    font-size: 1.5rem;
  }

  .theme-wrapper {
    top: 15px;
    right: 15px;
  }
}
