/* Login, Register */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wight@300;400;500;600;700;800;900&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #23242a;
}

.box
{
    position: relative;
    width: 380px;
    height: 500px;
    background: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
	position: relative;
    background: #1c1c1c;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

.box::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent, #ffe845, #ffe845);
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    pointer-events: none;
}

.box::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent, #ffe845, #ffe845);
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -3s;
    pointer-events: none;
}

@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}

.form
{
    position: absolute;
    inset: 2px;
    border-radius: 8px;
    background: #28292d;
    z-index: 10;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

.form h2
{
    color: #ffe845;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.1em;
}

.inputBox
{
    position: relative;
    width: 300px;
    margin-top: 35px;
}

.inputBox input
{
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    z-index: 10;
}

.inputBox span
{
    position: absolute;
    left: 0;
    padding: 20px 0px 10px;
    font-size: 1em;
    color: #8f8f8f;
    pointer-events: none;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

.inputBox input:valid ~ span,
.inputBox input:focus ~ span
{
    color: #ffe845;
    transform: translateX(0px) translateY(-34px);
    font-size: 0.75em;
}

.inputBox i
{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #ffe845;
    border-radius: 4px;
    transition: 0.5s;
    pointer-events: none;
    z-index: 9;
}

.inputBox input:valid ~ i,
.inputBox input:focus ~ i
{
    height: 44px;
}

.links
{
    display: flex;
    justify-content: space-between;
}

.links a
{
    margin: 10px 0;
    font-size: 0.75em;
    color: #8f8f8f;
    text-decoration: none;
}

.links a:hover,
.links a:nth-child(2)
{
    color: #ffe845;
}

input[type="submit"]
{
    border: none;
    outline: none;
    background: #ffe845;
    padding: 11px 25px;
    width: 120px;
    margin-top: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

input[type="submit"]:active
{
    opacity: 0.8;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
    width: 230px;
    height: auto;
}


*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #23242a;
}


/* Passwort vergessen */
.reset-wrapper {
    position: relative;
    width: 380px;
    max-height: 0;
    overflow: hidden;
    margin-top: 20px;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    z-index: 1;
}

.reset-wrapper.active {
    max-height: 800px;
    opacity: 1;
}

.reset-wrapper::before,
.reset-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent, #ffe845, #ffe845);
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    z-index: 0;
}

.reset-wrapper::after {
    animation-delay: -3s;
}

.reset-form {
    position: relative;
    background: #28292d;
    border-radius: 8px;
    padding: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reset-wrapper.active .reset-form {
    opacity: 1;
    pointer-events: auto;
}

.reset-form h2 {
    color: #ffe845;
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
}

.reset-form input[type="email"] {
    padding: 10px;
    border-radius: 4px;
    border: none;
    outline: none;
    background: #1e1e1e;
    color: #eee;
    margin-bottom: 15px;
}

.reset-form button {
    background: #ffe845;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.reset-form button:active {
    opacity: 0.8;
}

.reset-form p {
    text-align: center;
    font-size: 0.85em;
    color: #9acfff;
}

#closeReset {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #999;
    text-decoration: none;
    font-size: 1.2em;
    z-index: 20;
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  width: 100%;
  max-width: 300px;
}

.back-to-login {
  font-size: 0.75em;
  color: #8f8f8f;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.back-to-login:hover {
  color: #ffe845;
}


.form-buttons input[type="submit"] {
  border: none;
  outline: none;
  background: #ffe845;
  padding: 11px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: normal;
  flex-shrink: 0;
  margin-top: -2px;
}

.form-buttons a.back-to-login {
  display: inline-block;
  padding: 11px 25px;
  border-radius: 4px;
  background: #333;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.3s;
}

.form-buttons a.back-to-login:hover {
  background: #ffe845;
  color: #000;
}

.box.register {
    min-height: 650px;
    height: auto;
    padding-bottom: 40px;
}

/* Fix: Animation für Register-Box vergrößern */
.box.register::before,
.box.register::after {
    height: 650px;
    width: 500px;
}
