/* ============================================================
   accounts.css — Stilovi za accounts module (login, lozinka, 403)
   ============================================================ */

/* Prikaz cele širine bez bočne navigacije —
   primenjuje se samo na stranicama koje učitavaju ovaj fajl */
.main-content {
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-top: 0 !important;
}

/* Centrirana stranica sa minimalnom visinom */
.centered-page-row {
    min-height: 80vh;
}

/* Ikona za status stranice (3rem) */
.icon-status {
    font-size: 3rem;
}

/* Ikona za error/upozorenje stranice (4rem) */
.icon-status-lg {
    font-size: 4rem;
}

/* --- Promena lozinke --- */

.pw-change-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px);
    padding: 2rem 1rem;
    background: #f9fafb;
}

.pw-change-container {
    width: 100%;
    max-width: 420px;
}

.pw-change-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pw-change-header__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pw-change-header__icon i {
    font-size: 1.5rem;
    color: #2563eb;
}

.pw-change-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.pw-change-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.pw-change-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pw-change-card label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.375rem;
}

.pw-change-card .form-control {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pw-change-card .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.pw-change-card .form-text,
.pw-change-card .helptext {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.pw-change-card .form-text ul,
.pw-change-card .helptext ul {
    padding-left: 1.25rem;
    margin: 0.25rem 0 0;
}

.pw-change-card .form-control.is-invalid {
    border-color: #ef4444;
}

.pw-change-card .invalid-feedback {
    font-size: 0.8125rem;
    color: #ef4444;
}

.pw-change-card .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #ef4444;
}

.pw-change-card .btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    min-height: 44px;
}

.pw-change-card .btn-submit:hover {
    background: #1d4ed8;
}

.pw-change-card .btn-submit:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    outline: none;
}

.pw-change-footer {
    text-align: center;
    margin-top: 1.25rem;
}

.pw-change-footer a {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.pw-change-footer a:hover {
    color: #2563eb;
}

@media (prefers-reduced-motion: no-preference) {
    .pw-change-container {
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
