/* Styles communs pour les pages d'authentification */

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'ITC Avant Garde Gothic Std', 'Nunito', sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
}

path {
    stroke: #000000;
    fill: #000000;
}

.page-wrapper {
    overflow: hidden;
}

.sky {
background: linear-gradient(to bottom, #000508 0%, #163C52 25%, #4F4F47 40%, #9f591a 53%, #752800 85%, #2F1107 100%);
width: 100%;
height: 100vh;
    padding-top: 15rem;
}

.sky .component-wrapper {
    position: relative;
}

.sky .sun {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 45%;
    left: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe483 0%, #ffc700 10%, #ff8117 11%, #f5740300 35%, #f5740300 100%);
}

.sky .svg-image {
    position: absolute;
    bottom: -7px;
    left: 0;
    right: 0;
    margin: auto;
    width: 80%;
    max-height: 75vh;
}

.sky .background-left {
    width: 60%;
    margin-left: -36px;
    transform: scaleX(-1);
    bottom: -15px;
}

.sky .background-right {
    margin-right: 0;
}

.sky .background {
    width: 100%;
    margin: 0 -20px;
    margin-bottom: -10px;
}

.sky .background-grid {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    top: 0;
    align-items: flex-end;
}

.sky .limit {
    max-height: 75vh;
    max-width: 100vh;
    width: calc((768/1024) * 107%);
    bottom: 0;
}

.sky .light-wrapper,
.sky .weld-wrapper,
.sky .spark-wrapper {
    position: relative;
    padding-bottom: calc((768/1024) * 100%);
    height: 0;
}

.ground {
  background: black;
  width: 100%;
  height: 25vh;
}

.svg-components {
  position: relative;
  height: 0;
  width: 100%;
  padding: 0;
  padding-bottom: 75vh;
  margin: auto;
  margin-left: -10%;
}

.svg-components svg{
    position: absolute;
    height: 100%;
    width: 80%;
    left: 0;
    bottom: -7px;
    right: 0;
    margin: auto;
    max-height: calc(80vw / 1.33);
    margin-right: 0;
}

.container {
  position: relative;
}

.light-bar {
    transform: rotate(4deg) translateX(15px);
    display: flex;
    justify-content: space-between;
    width: 85%;
    position: absolute;
    height: 100%;
    bottom: -18%;
}

.light.red {
    visibility: visible;
    opacity: 1;
    width: 1px;
    height: 1px;
    box-shadow: 0 0 5px 5px #ff1818;
    background-color: #ff1818;
    animation: strobe 3s steps(2, start) infinite alternate;
}

.light.red.top {
    position: absolute;
    top: 9%;
    right: 29%;
}

.material.hidden {
    visibility: hidden;
}

.material path,
.trolly-movement {
    animation: move-trolly-components 45s infinite ease-in-out alternate;
}

.hook {
    animation: move-trolly-components 45s infinite ease-in-out alternate;
}

.cable {
    stroke-width: 1;
    stroke: black;
    stroke-dasharray: 485;
    stroke-dashoffset: 485;
    animation: move-cable 45s infinite ease-in-out alternate, move-trolly-components 45s infinite ease-in-out alternate;
}

.material,
.trolly-movement,
.cable,
.hook {
    --transX1: -55%;
    --transX2: -50%;
    --transX3: -5%;
    --transX4: -5%;

    --transY1: -6.5%;
    --transY2: -6.5%;
    --transY3: 0%;
    --transY4: 0%;

    --scale1: 1.1;
    --scale2: 1;
}

.hook,
.material {
    --transY1: 55%;
    --transY2: -6.5%;
    --transY3: 0%;
    --transY4: 55%;
}

.spark {
    position: relative;
    width: 10%;
    margin-top: -20px;
    animation-timing-function: linear;
}

.weld-container,
.spark-container {
    width: 10px;
    height: 10px;
    position: absolute;
}

.weld-container:first-child,
.spark-container:first-child {
    left: 81.2%;
    top: 50.2%;
}

.weld-container:last-child,
.spark-container:last-child {
    left: 52%;
    top: 71.9%;
}

.weld {
    opacity: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: welding 8s infinite;
    background: radial-gradient(circle, #ffffff 0%, #DDEDFF 25%, #e1ecf9 35%, #cee4ff 40%, rgba(186, 218, 255, 1) 50%, rgba(186, 218, 255, 0.4) 80%, rgba(186, 218, 255, 0.1) 100%);
}

.particle {
    opacity: 0;
    position: absolute;
    background-color: rgba(255, 251, 209, 1);
}

.particle.negative-X {
    animation: sparks-neg-X 0.7s infinite, welding 8s infinite;
}

.particle.positive-X {
    animation: sparks-pos-X 0.7s infinite, welding 8s infinite;
}

.auth-wrapper {
display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding-top: 5vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-container {
    display: flex;
    flex-direction: column;
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.auth-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.auth-logo {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.auth-logo img {
max-height: 500px;
    max-width: 650px;
}

.auth-heading {
    text-align: center;
    margin-top: 1rem;
}

.auth-heading h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-heading p {
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: #d1d5db;
}

.auth-card {
    display: none;
}

.auth-header {
    background: linear-gradient(90deg, #0a2e57 0%, #2176ae 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.auth-header span {
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #5a5c69;
    color: #858796;
}

.auth-footer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Styles pour les formulaires */
.form-control {
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.form-label {
    font-weight: 600;
    color: #5a5c69;
}

.btn-auth {
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

/* Styles pour les alertes */
.alert {
    border-radius: 0.35rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        margin: 0 0.5rem;
    }
    
    .auth-body {
        padding: 1.5rem;
    }

    .auth-logo img {
    max-height: 200px;
    max-width: 250px;
    }

    .auth-heading h1 {
    font-size: clamp(1.2rem, 4vw, 3rem);
    }

    .auth-container {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}
.auth-heading p {
    font-size: clamp(0.85rem, 2vw, 1.5rem);
    text-align: justify;
}
.sky {
    padding-top: 10rem;
    height: 90vh;
}
.ground {
    height: 10vh;
}
.sky .sun {
    top: 50%;
    left: -20%;
}
}

@keyframes welding {
    0%  {opacity: 0;}
    1%  {opacity: 1;}
    2%  {opacity: 0;}
    3%  {opacity: 1;}
    4%  {opacity: 0;}
    5%  {opacity: 1;}
    11% {opacity: 1;}
    12% {opacity: 0;}
    13% {opacity: 1;}
    59% {opacity: 1;}
    60% {opacity: 0;}
    100%{opacity: 0;}
}

@keyframes sparks-neg-X {
    0%   { opacity: 1; transform:translateY(0%); }
    95%  { opacity: 1; }
    100% { opacity: 0; transform:translateY(1500%) translateX(-5px); }
}

@keyframes sparks-pos-X {
    0%   { opacity: 1; transform:translateY(0%) rotate(0deg); }
    93%  { opacity: 1; }
    100% { opacity: 0; transform:translateY(1500%) translateX(5px); }
}

@keyframes strobe {
    to {
        visibility: hidden;
        opacity: 0;
    }
}

@keyframes move-trolly-components {
    0%   { transform: translateX(var(--transX1)) translateY(var(--transY1)) scale(var(--scale1)); }
    25%  { transform: translateX(var(--transX2)) translateY(var(--transY2)) scale(var(--scale1)); }
    75%  { transform: translateX(var(--transX3)) translateY(var(--transY3)) scale(var(--scale2)); }
    100% { transform: translateX(var(--transX4)) translateY(var(--transY4)) scale(var(--scale2)); }
}

@keyframes move-cable {
    0%   { stroke-dashoffset: 970; }
    25%  { stroke-dashoffset: 543; }
    75%  { stroke-dashoffset: 543; }
    100% { stroke-dashoffset: 970; }
}
