@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #3bada6;
  --secondary-color: #2c8a85;
  --accent-color: #f8d57c;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --border-color: #e1e5e9;
  --bg-light: #f8f9fa;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  background: linear-gradient(to bottom right, #fffbde, #90d1ca, #129990, #096b68);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: var(--secondary-color);
  color: white;
  transform: scale(1.05);
}

.mobile-logo img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
}

/* Welcome Section (Desktop) */
.welcome-section {
  padding: 3rem;
  text-align: center;
  color: white;
}

.brand-logo {
  margin-bottom: 2rem;
}

.brand-logo img {
  width: 120px;
  height: 120px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.welcome-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.decorative-quote {
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.decorative-quote i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.decorative-quote p {
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 480px;
  padding: 2rem 1rem;
}

/* Login Card */
.login-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Card Header */
.card-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.home-link {
  color: #129990;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.home-link:hover {
  color: #096b68;
  transform: scale(1.1);
}

.icon-container {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 10px;
}

.header-content {
  text-align: center;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.logo-container img {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.login-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Mobile Header Content */
.mobile-header-content {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.mobile-login-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.mobile-login-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Form Styles */
.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #6c757d;
  transition: color 0.3s ease;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #129990;
  box-shadow: 0 0 0 3px rgba(18, 153, 144, 0.1);
}

.form-control:focus + .input-icon {
  color: #129990;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #129990;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 16px;
  height: 16px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #129990;
  border-color: #129990;
}

.form-check-label {
  color: #6c757d;
  cursor: pointer;
}

.forgot-password {
  color: #129990;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #096b68;
  text-decoration: underline;
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #129990, #096b68);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(to right, #096b68, #129990);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(18, 153, 144, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5e9;
}

.divider span {
  padding: 0 .5rem;
  position: relative;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Social Login */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-google,
.btn-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  background-color: white;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-google:hover {
  border-color: #129990;
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

.btn-facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
}

/* Sign Up Link */
.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.signup-link a {
  color: #129990;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.25rem;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: #096b68;
  text-decoration: underline;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.5);
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* body {
    padding-top: 70px;
  } */

  .login-container {
    padding: 1rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    /* margin: 0 0.5rem; */
  }

  .mobile-login-title {
    font-size: 1.8rem;
  }

  .social-login {
    grid-template-columns: 1fr;
  }

  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .welcome-title {
    font-size: 2.5rem;
  }

  .feature-item {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 2rem 1.5rem;
    /* margin: 1rem; */
  }

  .logo-container img {
    width: 70px;
    height: 70px;
  }S

  .login-title {
    font-size: 1.2rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .forgot-password {
    align-self: flex-end;
  }
}

@media (max-width: 400px) {
  .login-card {
    padding: 1.5rem 1rem;
  }

  .logo-container img {
    width: 60px;
    height: 60px;
  }

  .login-title {
    font-size: 1.3rem;
  }

  .btn-login,
  .btn-google {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .mobile-header {
    height: 60px;
  }

  /* body {
    padding-top: 60px;
  } */

  .login-card {
    padding: 1.5rem;
  }

  .mobile-header-content {
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .btn-login {
    margin-bottom: 1rem;
  }

  .divider {
    margin: 1rem 0;
  }

  .social-login {
    margin-bottom: 1rem;
  }
}

/* Loading Animation */
.btn-login.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-login.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Focus Styles for Accessibility */
.btn-login:focus,
.btn-google:focus,
.form-control:focus,
.password-toggle:focus {
  outline: 2px solid #129990;
  outline-offset: 2px;
}

.back-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.form-control:focus {
  outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .login-card {
    border: 2px solid var(--text-dark);
  }

  .form-control {
    border-width: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .shape {
    animation: none;
  }
}
