/* ===================================
   LOGIN PAGE STYLES
   =================================== */

.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--accent);
}

.login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--surface);
  position: relative;
}

.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.login-right::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  top: -100px;
  left: -100px;
}

.login-right::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  bottom: -80px;
  right: -80px;
}

.login-right-content {
  text-align: center;
  color: var(--text-inverse);
  z-index: 1;
  position: relative;
}

.login-right-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  animation: fadeInDown 600ms ease forwards;
}

.login-right-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  animation: fadeInUp 600ms ease 100ms forwards;
  opacity: 0;
}

.login-right-subtitle {
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  animation: fadeInUp 600ms ease 200ms forwards;
  margin-bottom: 16px;
}

.login-right-desc {
  font-size: 15px;
  opacity: 0;
  animation: fadeInUp 600ms ease 300ms forwards;
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Floating shapes */
.login-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  animation: float 8s ease-in-out infinite;
}

.login-shape:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 15%;
  right: 20%;
  animation-delay: 0s;
}

.login-shape:nth-child(2) {
  width: 50px;
  height: 50px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  border-radius: var(--radius-full);
}

.login-shape:nth-child(3) {
  width: 70px;
  height: 70px;
  top: 75%;
  right: 70%;
  animation-delay: 4s;
}

.login-shape:nth-child(4) {
  width: 40px;
  height: 40px;
  top: 20%;
  right: 75%;
  animation-delay: 1s;
  border-radius: var(--radius-full);
}

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

/* Login Form */
.login-form-container {
  width: 100%;
  max-width: 420px;
}

.login-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-form-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: none;
}

.login-form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-form {
  margin-bottom: 24px;
}

.login-form .form-input {
  height: 54px;
  font-size: 15px;
}

.login-btn {
  height: 54px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.login-btn .spinner {
  width: 22px;
  height: 22px;
}

.login-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.login-footer span {
  color: var(--primary);
  font-weight: 600;
}

/* Login Error */
.login-error {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--error-bg);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  animation: fadeIn 300ms ease;
}

.login-error.show {
  display: flex;
}

/* Responsive */
@media (max-width: 968px) {
  .login-right {
    display: none;
  }

  .login-left {
    padding: 24px;
  }

  .login-form-logo {
    display: block;
  }
}

@media (max-width: 480px) {
  .login-form-container {
    padding: 0 8px;
  }

  .login-form-title {
    font-size: 20px;
  }
}
