/* Pasek nagłówka z użytkownikiem */
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;
}

/* Siatka plików */
ul.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

ul.file-grid li {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.file-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-name a {
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.file-name a:hover {
    text-decoration: underline;
}

/* Miniatury */
.thumbnail {
    max-height: 60px;
    border-radius: 5px;
}

/* Odtwarzacze */
audio, video {
    margin-top: 10px;
    max-width: 100%;
}

/* Sekcja formularzy */
.form-section {
    margin-top: 30px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.form-section form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.form-section form label {
    font-weight: bold;
}

.form-section form input[type="text"],
.form-section form input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-section form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

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

/* Przycisk powrotu */
.back-btn {
    display: block;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: #2980b9;
    text-decoration: none;
}

/* Wyśrodkowanie całej strony */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
}

/* 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;
}