/* Wyśrodkowanie całej strony */
.auth-style {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
}

.track-grid {
    flex-grow: 1;
}

header.playlist-header {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer.playlist-footer {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

main.track-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
}

/* Estetyczne okno formularza */
.form-container {
    width: 350px;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Nagłówek */
.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #2c3e50;
}

/* Formularz */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form label {
    font-weight: bold;
    color: #34495e;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.auth-form button {
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.auth-form button:hover {
    background-color: #2980b9;
}

/* Komunikat błędu */
.error-box {
    background-color: #ffe6e6;
    padding: 15px;
    border: 1px solid #ff4d4d;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.error-box .error {
    color: #c0392b;
    font-weight: bold;
}

.error-box a {
    display: inline-block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.error-box a:hover {
    text-decoration: underline;
}

/* Link do rejestracji */
.form-container p {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
}

.auth-footer a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #e0eafc, #cfdef3);

    
}

