/* ================================================
   FORMULARZE AUTORYZACJI
   ================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.auth-error ul {
    margin: 0;
    padding-left: 1.25rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-links a {
    color: #f97316;
    text-decoration: none;
}

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

/* ================================================
   FORMULARZ DODAWANIA OBIEKTU
   ================================================ */

.submit-object-page {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 100vh;
}

.submit-object-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form-section legend {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    padding: 0 0.5rem;
}

/* ================================================
   POLA FORMULARZA
   ================================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-group input[type="file"] {
    padding: 0.75rem;
    background: #f8fafc;
}

/* Wiersz z dwoma polami */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox */
.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f97316;
}

/* Akcje formularza */
.form-actions {
    text-align: center;
    padding-top: 1rem;
}

/* ================================================
   PRZYCISKI
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #f97316;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ea580c;
}

.btn-secondary {
    background: #e2e8f0;
    color: #374151;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ================================================
   PANEL UŻYTKOWNIKA
   ================================================ */

.my-objects-page {
    padding: 2rem 0;
    background: #f8fafc;
    min-height: 100vh;
}

.user-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info img {
    border-radius: 50%;
}

.user-info h2 {
    margin: 0;
    font-size: 1.25rem;
}

.user-info p {
    margin: 0;
    color: #6b7280;
}

.user-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #374151;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-nav a:hover {
    background: #f1f5f9;
}

.user-nav a.active {
    background: #f97316;
    color: #ffffff;
}

/* Nagłówek sekcji */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Lista obiektów */
.objects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.object-card--dashboard {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.object-card__image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.object-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.object-card__image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.875rem;
}

.object-card__content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.object-meta {
    display: flex;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.object-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.status-published {
    background: #dcfce7;
    color: #16a34a;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-draft {
    background: #e2e8f0;
    color: #64748b;
}

.object-card__actions {
    display: flex;
    gap: 0.5rem;
}

/* Brak obiektów */
.no-objects {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
}

.no-objects__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-objects h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.no-objects p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Alerty */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Responsywność */
@media (max-width: 768px) {
    .user-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .object-card--dashboard {
        grid-template-columns: 1fr;
    }

    .object-card__image {
        width: 100%;
        height: 200px;
    }

    .object-card__actions {
        justify-content: flex-start;
    }
}