/* style.css - Enhanced Login Page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.login-body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow-x: hidden;
}

.background-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 20%;
  animation-delay: 5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 30%;
  animation-delay: 10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 10%;
  animation-delay: 15s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

/* Header */
.login-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header .container {
  padding: 1rem 20px;
  display: flex;
  justify-content: center;
  position: relative;
}

.logo img {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

.login-header .nav {
  position: absolute;
  right: 20px;
}

.login-header .nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.login-header .nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.login-header .nav a:hover {
  color: white;
  transform: translateY(-2px);
}

/* Main Content */
.login-main {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 3rem;
}

.login-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  backdrop-filter: blur(10px);
}

.login-brand h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.login-brand h1 span {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-brand p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
}

/* Form Styling */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.input-wrapper {
  position: relative;
}

.login-form input {
  width: 100%;
  padding: 1.25rem 1rem 1.25rem 3.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.login-form input::placeholder {
  color: #94a3b8;
}

.login-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.1rem;
  z-index: 2;
  transition: all 0.3s ease;
}

.login-form input:focus + .input-icon {
  color: #2563eb;
}

.toggle-password {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.toggle-password:hover {
  color: #2563eb;
}

.input-success {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.input-wrapper.valid .input-success {
  opacity: 1;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.remember-me input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
  background: #2563eb;
  border-color: #2563eb;
}

.remember-me input:checked + .checkmark::after { 
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.forgot-password {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: white;
  text-decoration: underline;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.5);
}

.login-btn:active {
  transform: translateY(-1px);
}

.login-btn .btn-loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-btn.loading .btn-text {
  opacity: 0;
}

.login-btn.loading .btn-loading {
  opacity: 1;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider span {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Social Buttons */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-btn {
  flex: 1;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.google { border-color: #db4437; }
.github { border-color: #333; }

/* Register Link */
.register-link {
  text-align: center;
}

.register-link p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.register-link a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.register-link a:hover {
  color: #ffed4e;
  text-decoration: underline;
}
 
/* Demo Info */
.demo-info {
  display: none;
  animation: slideInUp 0.6s ease;
}

@media (min-width: 768px) {
  .demo-info { display: block; }
}

.demo-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 300px;
  text-align: center;
}

.demo-card i {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.demo-card h4 {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.demo-card p { 
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* Footer */
.login-footer {
  margin-top: auto;
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.login-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.login-footer a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .social-login {
    flex-direction: column;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}
