:root {
    --gradient-red: #d1920b;
    --gradient-black: #0d0e0d;
}

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

.login-page {
    min-height: 100vh;
    min-width: 100vw;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f5f5f5;
}

.login-container {
    width: min(420px, 90vw);

    border-radius: 20px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.login-form {
    padding: 50px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.headline {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    animation: floatIn 0.8s ease 0.25s both;
}

.ze-sub {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    animation: floatIn 0.8s ease 0.35s both;
}

.input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-bottom: 25px;

    animation: floatIn 0.8s ease 0.6s both;
}

.username,
.password {
    width: 100%;
    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 16px;
    outline: none;

    transition: border-color 0.3s ease;
}

.username:focus,
.password:focus {
    border-color: var(--gradient-black);
}

.login-button {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;

    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;

    background: linear-gradient(
        120deg,
        var(--gradient-black),
        var(--gradient-red)
    );

    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: floatIn 0.8s ease 1s both;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(8, 143, 8, 0.3);
}

.error-message {
    color: red;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .login-form {
        padding: 35px 25px;
    }

    .headline {
        font-size: 28px;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TOAST / ALERT */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #e74c3c;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: sans-serif;

  opacity: 0;
  transform: translateX(20px);
  animation: showError 3s forwards;
}

@keyframes showError {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  10% {
    opacity: 1;
    transform: translateX(0);
  }
  80% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(20px);
  }
}