/* AI Theme Authentication Pages Styles */

/* AI Logo Animation */
.ai-logo-container {
  display: inline-block;
  position: relative;
}

.ai-logo {
  width: 80px;
  height: 80px;
  background: var(--ai-gradient-2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.ai-logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.ai-logo i {
  font-size: 2.5rem;
  color: white;
  z-index: 1;
  position: relative;
  animation: robotBounce 2s ease-in-out infinite;
}

@keyframes robotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Login Box Overrides */
.login-box h2 {
  font-size: 2rem;
}

.login-box .form-group {
  margin-bottom: 20px;
}

.login-box .form-label {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ai-text);
}

.login-box .input-group-text {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-right: none;
  color: var(--ai-primary-light);
}

.login-box .form-control {
  border-left: none;
  padding-left: 0;
}

.login-box .form-control:focus {
  border-left: none;
}

.login-box .input-group-append .btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-left: none;
  color: var(--ai-primary-light);
}

.login-box .input-group-append .btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--ai-primary);
}

/* Forgot Password Link */
.forgot-link {
  color: var(--ai-primary-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Custom Checkbox */
.custom-control-label {
  color: var(--ai-text-secondary);
  font-weight: 400;
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--ai-primary);
  border-color: var(--ai-primary);
}

.custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Submit Button */
.login-box .btn-primary {
  background: var(--ai-gradient-2);
  border: none;
  padding: 14px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

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

/* Registration Page Specific */
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.register-box {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.register-box h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  background: var(--ai-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Security Strength Meter */
.password-strength-meter {
  margin-top: 10px;
  height: 5px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 3px;
  overflow: hidden;
}

.password-strength-meter .strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.password-strength-meter .strength-bar.weak {
  width: 33%;
  background: #ef4444;
}

.password-strength-meter .strength-bar.medium {
  width: 66%;
  background: var(--ai-accent);
}

.password-strength-meter .strength-bar.strong {
  width: 100%;
  background: var(--ai-secondary);
}

/* Social Login Buttons */
.social-signin-btns {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.social-signin-btns .btn {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--ai-text);
  padding: 12px 20px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.social-signin-btns .btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--ai-primary);
  transform: translateY(-2px);
}

.social-signin-btns .btn i {
  margin-right: 10px;
  font-size: 1.125rem;
}

/* LinkedIn Accounts */
.linked-accounts {
  background: rgba(30, 41, 59, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.linked-accounts h5 {
  color: var(--ai-primary-light);
  font-weight: 600;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .login-box,
  .register-box {
    padding: 30px 20px;
  }
  
  .ai-logo {
    width: 60px;
    height: 60px;
  }
  
  .ai-logo i {
    font-size: 2rem;
  }
}

/* Error Messages */
.login-box .alert,
.register-box .alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 10px;
}

.login-box .alert-success,
.register-box .alert-success {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #34d399;
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}