@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-BlackItalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-HeavyItalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Heavy.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-UltraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-ThinItalic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-UltraLightItalic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue';
  src: url('/static/fonts/HelveticaNeue-Roman.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
    background-image: url('background_login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    background-color: #1a1a1a;
}

body {
  font-family: 'Helvetica Neue';
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow {
  display: inline-block;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
  filter:drop-shadow(1px 0px 1px #fff);
}

@keyframes glow {
  from {
    filter:drop-shadow(0px 0px 1px #fff);
  }
  to {
    filter:drop-shadow(0px 0px 5px #fff);
  }
}

.subtext {
  color: white;
  font-size: 15px;
  text-align: center;
  margin-top: 60px;
}

.subtext_reset {
  color: white;
  font-size: 15px;
  text-align: center;
}

.container {
  width: 350px;
  max-width: 90vw;
  min-height: auto;
  margin: 100px auto;
  padding: 20px;
  background-color: rgb(24, 24, 24); 
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 0px 0px 10px black;
}

.login-container {
  width: 350px;
  max-width: 90vw;
  min-height: auto;
  margin: 100px auto;
  padding: 20px;
  background-color: rgb(24, 24, 24); 
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 0px 0px 10px black;
}

.signup-container {
  width: 350px;
  max-width: 90vw;
  min-height: auto;
  margin: 40px auto;
  padding: 20px;
  background-color: #181818; 
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 0px 0px 10px black;
}

.titlu {
  color: transparent;
  font-size: 65px;
  -webkit-text-stroke: 1px;
  -webkit-text-stroke-color: white; 
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.info {
  margin-top: 55px;
}

.input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 330px;  
  height: 20px; 
  font-size: 15px; 
  padding: 10px; 
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

select {
  width: 353px;  
  height: 43px; 
  font-size: 15px;  
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  background-color: white;
}

.eroare-email {
  color: red;
  font-size: 0.9em;
  text-align: center;
  padding-bottom: 10px;
}

button {
  width: 220px;
  height: 35px;
  font-size: 17px;
  background-color: #99FF99;
  color: black;
  border: 1px solid black;
  border-radius: 8px;
  cursor: pointer;
}

button.signup {
  background-color: #99FFFF;
}

button.reset {
  background-color: #FF8A8A;
}

.link {
  display: flex;
  flex-direction: column;
}

button:hover {
  opacity: 0.9;
}

.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.flash-error {
    background-color: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: fadeIn 0.5s, fadeOut 0.5s 2.5s forwards;
}

.flash-success {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: fadeIn 0.5s, fadeOut 0.5s 2.5s forwards;
}

.flash-info {
    background-color: #2196F3;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: fadeIn 0.5s, fadeOut 0.5s 2.5s forwards;
}

.signup-logo {
    display: block;
    margin: 0 auto;
}

.select.hidden {
    display: none;
}

.signup-spam-warning {
    background-color: rgba(255, 140, 140, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 5px;
    padding: 10px;
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255, 100, 100, 0.85);
    text-transform: lowercase;
}

.signup-spam-warning strong {
    color: rgba(255, 80, 80, 0.9);
    font-weight: 600;
}

.gdpr-consent-container {
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.gdpr-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.gdpr-consent-input {
    margin-top: 5px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
}

.gdpr-consent-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.gdpr-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gdpr-link:hover {
    color: #fff;
}

.signup-link {
    text-align: center;
    padding-top: 10px;
}

.login-container img {
    display: block;
    margin: 0 auto;
}

.login-container .link {
    text-align: center;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
}

@media (max-width: 500px) {
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
  }
  
  .container,
  .login-container,
  .signup-container {
    width: 92vw;
    max-width: 330px;
    min-width: 0;
    margin: 20px auto; 
    border-radius: 10px;
    box-shadow: 0px 0px 8px black;
    padding: 18px 12px;
    overflow: visible; 
    min-height: auto;
    height: auto;
  }
  
  .signup-container {   
    min-height: auto;  
    margin: 20px auto;
    height: auto;
  }
  
  input[type="email"],
  input[type="password"],
  input[type="text"],
  select {
    width: 85vw;
    max-width: 300px;
    min-width: 0;
    font-size: 14px;
    padding: 8px;
  }
  
  select {
    width: 85vw;
    max-width: 320px;
    min-width: 0;
    height: 38px;
    font-size: 14px;
    padding: 8px;
  }
  
  .logo {
    width: 310px; 
    height: auto; 
  }
  
  button {
    width: 65vw;
    max-width: 190px;
    min-width: 0;
    font-size: 15px;
    height: 32px;
    font-weight: normal;
  }
  
  .titlu {
    font-size: 38px;
  }
  
  .subtext {
    font-size: 13px;
    margin-top: 30px; 
  }
  
  .info {
    margin-top: 25px;
  }
  
  .button-section {
    margin-top: 15px;
    gap: 7px;
  }

  .link {
    margin: 10px 0;
    text-align: center;
  }
  
  .link a {
    color: white;
    text-decoration: none;
    font-size: 14px;
  }
}