@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
  /* Core colors */
  --paper-white: #fcfcfc;
  --paper-cream: #f7f5f2;
  --ink-dark: #1a1a1a;
  --ink-medium: #2d2d2d;
  --ink-light: #4a4a4a;
  --accent-warm: #fbbf24;
  --accent-secondary: #ff6b6b;
  --accent-tertiary: #fbbf24;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-warm) 0%, #fbbf24 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-secondary) 0%, #ff758c 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--ink-dark);
}

body {
  min-height: 100vh;
  background-image: url(../static/images/bg1.jpg);
  background-size: cover;
  background-position: right;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

/* Add animated particles */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 206, 209, 0.2) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.2) 0%, transparent 20%);
  animation: float 20s ease infinite;
  z-index: -1;
}

@keyframes float {
  0% { background-position: 0% 0%; }
  50% { background-position: 10% 10%; }
  100% { background-position: 0% 0%; }
}

.wrapper {
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.973);
  backdrop-filter: blur(10px);
  height: 100vh;
  width: max(40%, 600px);
  padding: 40px;
  border-radius: 0 20px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Add decorative elements */
.wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: var(--accent-warm);
  opacity: 0.03;
  border-radius: 50%;
  transform: translate(30%, 30%);
}

.logo {
  margin-bottom: 20px;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent-warm);
}

.subtitle {
  color: var(--ink-light);
  margin-bottom: 30px;
  font-weight: 300;
}

form {
  width: min(400px, 100%);
  margin-top: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

form > div {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}

form > div:hover {
  transform: translateY(-2px);
}

form label {
  flex-shrink: 0;
  height: 50px;
  width: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 10px 0 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.i {
  color: white;
}

form input {
  box-sizing: border-box;
  flex-grow: 1;
  min-width: 0;
  height: 50px;
  padding: 1em 1.5em;
  font: inherit;
  border-radius: 0 10px 10px 0;
  border: 2px solid transparent;
  border-left: none;
  background-color: rgba(243, 241, 241, 0.5);
  transition: all 0.3s ease;
}

form input:hover {
  background-color: rgba(243, 241, 241, 0.8);
}

form input:focus {
  outline: none;
  border-color: var(--accent-warm);
  background-color: white;
}

div:has(input:focus) > label {
  background: var(--accent-warm);
}

form input::placeholder {
  color: var(--ink-light);
  opacity: 0.7;
}

.button-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

form button {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 15px;
  background: var(--gradient-primary);
  color: white;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Add ripple effect */
form button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.5s ease;
}

form button:active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(80);
  transition: all 0s;
}

form .google {
  background: white;
  color: var(--ink-dark);
  border: 2px solid var(--ink-light);
  padding: 13px 20px 13px 50px;
  background-image: url(../static/images/google.png);
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 25px;
  transition: all 0.3s ease;
}

.google:hover {
  background-color: #f0f0f0;
  border-color: var(--ink-dark);
}

.divider {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--ink-light);
  opacity: 0.2;
}

.divider span {
  padding: 0 15px;
  color: var(--ink-light);
  font-size: 0.9rem;
}

.incorrect label {
  background: var(--accent-secondary);
}

form div.incorrect input {
  border-color: var(--accent-secondary);
}

#error-message {
  color: var(--accent-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

#error-message::before {
  content: '!';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--accent-secondary);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
}

a {
  color: var(--accent-warm);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

a:hover {
  color: var(--ink-dark);
  transform: translateY(-1px);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-top: 20px;
}

@media(max-width: 1100px) {
  .wrapper {
    width: 100%;
    border-radius: 0;
    padding: 30px 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
}

@media(max-width: 480px) {
  form {
    width: 100%;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}

/* Animation for form elements on page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo, h1, .subtitle, form > div, .button-group, .footer-text {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

h1 { animation-delay: 0.1s; }
.subtitle { animation-delay: 0.2s; }
form > div:nth-child(1) { animation-delay: 0.3s; }
form > div:nth-child(2) { animation-delay: 0.4s; }
.button-group { animation-delay: 0.5s; }
.footer-text { animation-delay: 0.6s; }


/* Add these styles to auth.css */

/* Auth Header Styles */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.auth-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.auth-logo:hover {
  transform: scale(1.05);
}

.auth-header h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink-dark);
  margin: 0.5rem 0;
  position: relative;
  display: inline-block;
}

.auth-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent-warm);
  border-radius: 2px;
}

/* Auth Footer Styles */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--ink-medium);
  font-size: 0.95rem;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.auth-footer a {
  color: var(--accent-warm);
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

.auth-footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-warm);
  transition: width 0.3s ease;
}

.auth-footer a:hover::after {
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .auth-logo {
      width: 70px;
      height: 70px;
  }
  
  .auth-header h2 {
      font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .auth-logo {
      width: 60px;
      height: 60px;
  }
  
  .auth-header h2 {
      font-size: 1.2rem;
  }
  
  .auth-footer {
      font-size: 0.9rem;
  }
}
