/* Login Page Styles - Portfolio Theme */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  background: #252934;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  background: #252934;
}

/* Login Container */
.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
}

.login-wrapper {
  background: rgba(37, 41, 52, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 50px 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-icon {
  font-size: 3em;
  color: #0f33ff;
  margin-bottom: 15px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.login-header h1 {
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 1em;
  color: #b0b3b8;
  font-weight: 400;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
}

form h2 {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
  font-weight: 600;
}

/* Error Message */
.error-message {
  background: rgba(255, 59, 59, 0.15);
  border: 1px solid rgba(255, 59, 59, 0.5);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 20px;
  color: #ff6b6b;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
  animation: shake 0.5s ease-in-out;
}

.error-message.blocked {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.5);
  color: #ffc107;
}

.error-message i {
  font-size: 1.2em;
  position: static;
  transform: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Input Fields */
.input-field {
  position: relative;
  margin-bottom: 30px;
}

.input-field i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #0f33ff;
  font-size: 1.2em;
  transition: all 0.3s ease;
  z-index: 1;
}

.input-field input {
  width: 100%;
  padding: 15px 15px 15px 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 1em;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.input-field input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #0f33ff;
  box-shadow: 0 0 20px rgba(15, 51, 255, 0.2);
}

.input-field input:focus ~ i {
  color: #1a4fff;
  transform: translateY(-50%) scale(1.1);
}

.input-field label {
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0b3b8;
  font-size: 1em;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
  top: -10px;
  left: 12px;
  font-size: 0.75em;
  color: #0f33ff;
  background: #252934;
  padding: 0 8px;
}

/* Login Button */
.login-btn {
  background: linear-gradient(135deg, #0f33ff 0%, #1a4fff 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.1em;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(15, 51, 255, 0.3);
  font-family: 'Montserrat', sans-serif;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(15, 51, 255, 0.5);
  background: linear-gradient(135deg, #1a4fff 0%, #0f33ff 100%);
}

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

/* Loading Spinner */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.login-btn.loading .btn-text {
  display: none;
}

.login-btn.loading .loading-spinner {
  display: inline-block;
}

.login-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Login Footer */
.login-footer {
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
  color: #b0b3b8;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-footer i {
  color: #0f33ff;
}

/* Responsive */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 40px 30px;
  }
  
  .login-header h1 {
    font-size: 1.5em;
  }
  
  form h2 {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 30px 20px;
  }
  
  .logo-icon {
    font-size: 2.5em;
  }
  
  .login-header h1 {
    font-size: 1.3em;
  }
  
  .login-header p {
    font-size: 0.9em;
  }
}