/*
 * ------------------------------------------------------------------------------
 * --This file is part of fz3temp-2 project.
 * --Created Date: Thursday, 14th November 2024 7:58:28
 * --Author: APC 62
 * --Made with ♥ by APC 62
 * --Last Modified: Sunday, 11th May 2025 14:35:00
 * ------------------------------------------------------------------------------
 * --Copyright (c) 2024-2025 APC 62, All Rights Reserved.
 * --This file is part of APC 62 project.
 * --Unauthorized using, copying, modifying and/or distributing of this file
 * --via any medium is strictly prohibited. This code is confidential.
 * ------------------------------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0f2741;
  --accent-color: #F18800;
  --accent-hover: #f09819;
  --text-color: #e5e5e5;
  --dark-bg: rgba(15, 16, 22, 0.85);
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-focus: rgba(255, 255, 255, 0.15);
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --border-radius: 12px;
  --button-gradient: linear-gradient(135deg, #ac660c 0%, #f09819 100%);
  --button-hover-gradient: linear-gradient(135deg, #f09819 0%, #ac660c 100%);
  --container-backdrop: blur(20px);
  --container-border: 1px solid rgba(255, 255, 255, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow: 0 0 20px rgba(241, 136, 0, 0.5);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: url("../../assets/images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(15, 39, 65, 0.8) 100%);
  backdrop-filter: blur(8px);
  z-index: 0;
}

.container {
  position: relative;
  width: 100%;
  max-width: max-content;
  min-width: 400px;
  background: var(--dark-bg);
  border-radius: var(--border-radius);
  backdrop-filter: var(--container-backdrop);
  box-shadow: var(--box-shadow);
  padding: 40px 30px;
  z-index: 1;
  border: var(--container-border);
  transform: translateY(0);
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
  margin: 0 auto;
}

.container:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow), var(--glow);
}

.logo {
  display: block;
  margin: 0 auto 25px;
  width: 240px;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

h3 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(to right, var(--text-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 12px auto 0;
  border-radius: 2px;
}

label {
  font-size: 15px;
  font-weight: 500;
  margin-top: 16px;
  display: block;
  transition: var(--transition);
  color: var(--text-color);
  position: relative;
  padding-left: 10px;
}

label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 12px;
  width: 3px;
  background: var(--accent-color);
  border-radius: 3px;
  transform: translateY(-50%);
}

.two-column {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.two-column > div {
  flex: 1;
}

input,
select {
  width: 100%;
  height: 50px;
  background: var(--input-bg);
  border-radius: var(--border-radius);
  padding: 0 15px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-color);
  outline: none;
  border: 1px solid transparent;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input::placeholder {
  color: rgba(176, 176, 176, 0.7);
}

input:focus,
select:focus {
  background: var(--input-focus);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(241, 136, 0, 0.1);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F18800' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

select option {
  background: var(--dark-bg);
  color: var(--text-color);
  padding: 12px;
}

button {
  margin-top: 32px;
  width: 100%;
  background: var(--button-gradient);
  color: var(--text-color);
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(172, 102, 12, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

button:hover {
  background: var(--button-hover-gradient);
  box-shadow: 0 6px 16px rgba(172, 102, 12, 0.5);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(172, 102, 12, 0.3);
}

/* Effet de ripple au clic */
button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .2) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

button:active::after {
  transform: scale(0, 0);
  opacity: .2;
  transition: 0s;
}

.signup-message {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.signup-message p {
  margin-bottom: 8px;
}

.signup-message a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 2px 4px;
  border-radius: 4px;
}

.signup-message a:hover {
  color: var(--accent-hover);
  background: rgba(241, 136, 0, 0.1);
}

.form-container {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-container.active {
  display: block;
  animation: slideUp 0.4s forwards;
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background-color: #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: none;
}

.password-strength.visible {
  display: block;
  animation: fadeIn 0.3s;
}

.toast {
  background-color: #f18900b9 !important;
  color: #ffffff !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  border: none !important;
  font-size: 11px !important;
}

.toast-info {
  background-color: #f18900b9 !important;
}

.toast-success {
  background-color: #00a86bb9 !important;
}

.toast-error {
  background-color: #810303b9 !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating labels effect */
.input-group {
  position: relative;
  margin-bottom: 10px;
}

/* Message boxes */
.message-box {
  max-width: 400px;
  margin: 20px auto;
  padding: 18px;
  border-radius: var(--border-radius);
  font-size: 15px;
  color: var(--text-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  backdrop-filter: blur(5px);
  animation: slideUp 0.4s forwards;
}

.message-box.success {
  background-color: rgba(5, 121, 32, 0.9);
  border-left: 4px solid #05c935;
}

.message-box.error {
  background-color: rgba(97, 8, 17, 0.9);
  border-left: 4px solid #e41c36;
}

.message-box.warning {
  background-color: rgba(255, 193, 7, 0.9);
  border-left: 4px solid #ffd700;
}

.message-box.info {
  background-color: rgba(23, 162, 184, 0.9);
  border-left: 4px solid #17d2f6;
}

.message-box.show {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 136, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(241, 136, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241, 136, 0, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 30px 25px;
    border-radius: 12px;
  }

  .logo {
    width: 220px;
    margin-bottom: 20px;
  }

  h3 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  label {
    font-size: 14px;
  }

  input, select {
    height: 48px;
    font-size: 14px;
  }

  .two-column {
    flex-direction: column;
    gap: 0;
  }

  button {
    padding: 14px;
    font-size: 15px;
    margin-top: 28px;
  }
  
  .signup-message {
    font-size: 13px;
  }
}

/* Animation de glowing pour attirer l'attention */
.attention-glow {
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(241, 136, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(241, 136, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(241, 136, 0, 0.5);
  }
}

.page-404 .container {
  text-align: center;
}

.page-404 .container h3 {
  font-size: 36px;
  margin-bottom: 20px;
}

.button-back-home {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-color);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(172, 102, 12, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 20px;
}

.button-back-home:hover {
  background: var(--button-hover-gradient);
  box-shadow: 0 6px 16px rgba(172, 102, 12, 0.5);
  transform: translateY(-2px);
}
