/**
 * DeMV Platform - Authentication Styles
 */

/* Form Section */
.form-section {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background: rgba(20, 20, 30, 0.8);
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.3), 0 0 60px rgba(0, 204, 255, 0.1);
  border: 1px solid var(--primary-color);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6c63ff, #00ccff);
  z-index: 1;
}

.form-container h2 {
  margin-bottom: 30px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #e0e0ff;
  letter-spacing: 0.5px;
  font-size: 14px;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 4px;
  background: rgba(30, 30, 45, 0.8);
  border: 1px solid var(--primary-color);
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
  outline: none;
}

.form-group input:focus {
  border-color: #00ccff;
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.4);
  background: rgba(30, 30, 45, 0.9);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:hover {
  border-color: #00ccff;
  box-shadow: 0 0 12px rgba(0, 204, 255, 0.3);
}

.wallet-status {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Wallet connection styling */
.wallet-connection {
    display: none;
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.wallet-connection.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.wallet-status {
    font-weight: 600;
    margin-bottom: 5px;
    color: #666;
}

.wallet-status.connected {
    color: #2ecc71;
}

.wallet-status.error {
    color: #e74c3c;
}

.wallet-address {
    font-family: monospace;
    font-size: 0.9em;
    color: #333;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 5px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Connect Wallet Button */
#connect-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  background: var(--secondary-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#connect-wallet:hover {
  background: var(--secondary-hover);
}

#connect-wallet.connected {
  background-color: #2ecc71;
  border-color: #27ae60;
  color: white;
}

#connect-wallet.connected:hover {
  background-color: #27ae60;
}

#connect-wallet i {
  font-size: 18px;
}

/* Enhance buttons */
.btn-primary {
  background: linear-gradient(135deg, #6c63ff 0%, #5a52e0 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a52e0 0%, #4a42d0 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.2);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* Login form specific styles */
#login-form .btn-primary,
#register-form .btn-primary {
  width: 100%;
  margin-top: 10px;
}

/* Form Footer */
.form-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Wallet Login Section */
.wallet-login-section {
  margin-top: 20px;
  text-align: center;
}

.divider {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.divider span {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.wallet-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #00a0ff;
  color: #00f0ff;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wallet-btn:hover {
  background: rgba(0, 160, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.wallet-btn i {
  font-size: 18px;
}

/* Cyberpunk Notification */
.cyberpunk-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00f0ff;
  border-radius: 4px;
  padding: 15px;
  color: #fff;
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  max-width: 300px;
}

.cyberpunk-notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-content i {
  color: #00f0ff;
  font-size: 18px;
}

/* Responsive Styles */
@media (max-width: 576px) {
  .form-container {
    padding: 20px;
  }
  
  .form-section {
    padding: 40px 20px;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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