/* assets/css/auth.css */

:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #5dade2;
  --secondary: #2ecc71;
  --accent: #e74c3c;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --gray: #bdc3c7;
  --card-bg: rgba(255, 255, 255, 0.95);
  --bg-gradient: linear-gradient(135deg, #3498db, #2c3e50);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-gradient);
  background-attachment: fixed;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.logo h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slogan {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: white;
  font-weight: 300;
  letter-spacing: 1px;
  opacity: 0.9;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.form-container {
  padding: 2.5rem;
  width: 100%;
}

.form-container h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  text-align: center;
}

.subtext {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  z-index: 2;
}

.input-group input {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  -webkit-appearance: none;
}

.input-group input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  background: white;
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.forgot-password {
  display: block;
  margin-top: 0.5rem;
  color: #7f8c8d;
  text-align: center;
}

.forgot-password:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .auth-container {
    max-width: 100%;
  }
  
  .form-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .logo img {
    width: 80px;
    height: 80px;
  }
  
  .form-container {
    padding: 1.5rem 1rem;
  }
  
  .input-group input {
    padding: 12px 12px 12px 40px;
  }
}