/* Base Styles and Variables */
:root {
  --primary-color: #4e54c8;
  --primary-light: #8f94fb;
  --secondary-color: #6c63ff;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #f5f8ff;
  --card-bg: #ffffff;
  --error-color: #ff3b30;
  --success-color: #34c759;
  --border-radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  width: 40px;
  height: 40px;
}

.logo path:first-child {
  fill: var(--primary-color);
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Button Styles */
.button {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.9rem;
}

.secondary-button {
  color: var(--primary-color);
  background-color: rgba(78, 84, 200, 0.1);
  border: none;
}

.secondary-button:hover {
  background-color: rgba(78, 84, 200, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Form Styles */
.login-container {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 90%;
  max-width: 450px;
  margin: 2rem auto;
  position: relative;
  z-index: 5;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.2rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--light-text);
  font-size: 0.9rem;
}

input {
  width: 100%;
  padding: 0.8rem;
  padding-left: 2.5rem;
  border: 1px solid #e1e5ee;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f9fafc;
}

input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(143, 148, 251, 0.2);
}

.icon {
  position: absolute;
  left: 0.8rem;
  top: 2.3rem;
  color: var(--light-text);
}

.sign-up-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--light-text);
}

.sign-up-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.sign-up-link a:hover {
  text-decoration: underline;
}

/* Background Shapes */
.shapes-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
  opacity: 0.1;
}

.shape1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
}

.shape2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -100px;
}

.shape3 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 10%;
}

/* Footer Styles */
.footer {
  margin-top: auto;
  padding: 1.5rem;
  text-align: center;
  color: var(--light-text);
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .login-container {
    padding: 1.5rem;
    margin: 1rem auto;
  }
  
  .button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  h1 {
    font-size: 1.3rem;
  }
  
  .shape1 {
    width: 200px;
    height: 200px;
  }
  
  .shape2 {
    width: 150px;
    height: 150px;
  }
  
  .shape3 {
    display: none;
  }
}

@media (max-width: 480px) {
  nav {
    width: 100%;
    justify-content: space-around;
  }
  
  .login-container {
    width: 95%;
    padding: 1.2rem;
  }
}