/* Login Page Specific Styles */

.login-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>') repeat;
  animation: float 20s linear infinite;
}

.login-box {
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-right: 2rem;
}

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

.login-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-gray);
  font-size: 1rem;
}

/* Form Styles */
.login-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background-color: var(--bg-white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-error {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 20px;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--primary-color);
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

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

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-wrapper span {
  color: var(--text-dark);
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Login Button */
.login-button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.button-loader {
  display: inline-block;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Login Footer */
.login-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

.login-footer p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Login Features */
.login-features {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 400px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.login-features h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.login-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.login-features li:last-child {
  margin-bottom: 0;
}

.login-features svg {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer Minimal */
.footer-minimal {
  background-color: rgba(31, 41, 55, 0.95);
  padding: 2rem 0;
}

.footer-minimal .footer-bottom {
  border-top: none;
  padding-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
    gap: 2rem;
  }

  .login-box {
    margin-right: 0;
    max-width: 500px;
  }

  .login-features {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .login-container {
    padding: 40px 20px;
  }

  .login-box {
    padding: 2.5rem 2rem;
  }

  .login-header h2 {
    font-size: 1.75rem;
  }

  .login-features {
    padding: 2rem;
  }

  .login-features h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 2rem 1.5rem;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }

  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="text"] {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .login-button {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .login-features {
    padding: 1.5rem;
  }

  .login-features li {
    font-size: 0.95rem;
  }
}

/* Success/Error States */
.form-group.error input {
  border-color: #ef4444;
}

.form-group.success input {
  border-color: var(--secondary-color);
}

/* Loading State */
.login-button.loading .button-text {
  opacity: 0;
}

.login-button.loading .button-loader {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
