body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #9bc5c3, #f4d03f);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* zmiana z center na flex-start */
    height: 100vh;
    margin: 0;
    flex-direction: column;
    min-height: 100vh;
}

.welcome-header {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    margin-top: -20px; /* zmiana z -30vh na 40px */
    flex-wrap: wrap;
    width: 100%;
}

.login-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 25%;
    margin: 0 auto; /* wyśrodkowanie */
    margin-top: 20px; /* obniżenie boxa */
}

.register-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 25%;
    margin: 0 auto; /* wyśrodkowanie */
}

@media (max-width: 768px) {
    html, body {
        overflow: hidden;
    }
    .login-container  {
        width: 80%;
        margin-top: -20px;
        margin-left: 17px;
    }
    .register-container  {
        width: 80%;
        margin-top: 5px;
    }
    .welcome-header {
        font-size: 24px;
    }
}

.login-btn,
.register-btn {
    width: 100%; /* dodane, by oba przyciski miały tę samą szerokość */
    box-sizing: border-box;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

.error-message {
    color: red;
    margin-bottom: 10px;
    font-size: 14px;
}

.input-group {
    display: flex;
    align-items: center;
    background: #333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.input-group img {
    width: 16px;
    margin-right: 10px;
}

.input-group input {
    border: none;
    background: none;
    outline: none;
    color: #fff;
    flex: 1;
    font-size: 14px;
}

.input-group input::placeholder {
    color: #bbb;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background: #777;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.login-btn:hover {
    background: #555;
}

p {
    font-size: 12px;
    margin-top: 10px;
}

p a {
    text-decoration: none;
    color: #333;
}

p a span {
    text-decoration: underline;
    cursor: pointer;
}

.success-message {
    color: green;
    margin-bottom: 10px;
    font-size: 14px;
}
.register-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #4caf50;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
}
.register-btn:hover {
    background: #388e3c;
}

.logo-login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.logo-login img {
    max-width: 180px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: -5vh;
    margin-bottom: -2vh;
}
@media (max-width: 768px) {
    .logo-login img {
        max-width: 120px;
        width: 70%;
        margin-bottom: 2vh;
    }
}

.login-page-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    margin-top: 20vh;
}